mirror of
https://github.com/moul/sshportal.git
synced 2025-01-06 07:32:01 +08:00
Merge pull request #192 from moul/dev/moul/maintenance
chore: repo maintenance 🤖
This commit is contained in:
commit
5760aece65
3 changed files with 5 additions and 1 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -22,7 +22,7 @@ jobs:
|
||||||
- name: lint
|
- name: lint
|
||||||
uses: golangci/golangci-lint-action@v0.1.7
|
uses: golangci/golangci-lint-action@v0.1.7
|
||||||
with:
|
with:
|
||||||
version: v1.26
|
version: v1.28
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
tests-on-windows:
|
tests-on-windows:
|
||||||
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
|
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
|
||||||
|
|
1
AUTHORS
generated
1
AUTHORS
generated
|
@ -19,6 +19,7 @@ Manuel Sabban <msa@nbs-system.com>
|
||||||
Mathieu Pasquet <mathieu.pasquet@alterway.fr>
|
Mathieu Pasquet <mathieu.pasquet@alterway.fr>
|
||||||
Mikael Rapp <micke.rapp@gmail.com>
|
Mikael Rapp <micke.rapp@gmail.com>
|
||||||
MitaliBo <mitali.bisht14@gmail.com>
|
MitaliBo <mitali.bisht14@gmail.com>
|
||||||
|
moul-bot <bot@moul.io>
|
||||||
Nelly Asher <karmelylle@rambler.ru>
|
Nelly Asher <karmelylle@rambler.ru>
|
||||||
NocFlame <aad@nocflame.se>
|
NocFlame <aad@nocflame.se>
|
||||||
Quentin Perez <qperez42@gmail.com>
|
Quentin Perez <qperez42@gmail.com>
|
||||||
|
|
3
rules.mk
vendored
3
rules.mk
vendored
|
@ -30,6 +30,7 @@ all: help
|
||||||
##
|
##
|
||||||
|
|
||||||
rwildcard = $(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) $(filter $(subst *,%,$2),$d))
|
rwildcard = $(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) $(filter $(subst *,%,$2),$d))
|
||||||
|
check-program = $(foreach exec,$(1),$(if $(shell PATH="$(PATH)" which $(exec)),,$(error "No $(exec) in PATH")))
|
||||||
|
|
||||||
##
|
##
|
||||||
## rules.mk
|
## rules.mk
|
||||||
|
@ -96,6 +97,7 @@ INSTALL_STEPS += go.install
|
||||||
|
|
||||||
.PHONY: go.release
|
.PHONY: go.release
|
||||||
go.release:
|
go.release:
|
||||||
|
$(call check-program, goreleaser)
|
||||||
goreleaser --snapshot --skip-publish --rm-dist
|
goreleaser --snapshot --skip-publish --rm-dist
|
||||||
@echo -n "Do you want to release? [y/N] " && read ans && \
|
@echo -n "Do you want to release? [y/N] " && read ans && \
|
||||||
if [ $${ans:-N} = y ]; then set -xe; goreleaser --rm-dist; fi
|
if [ $${ans:-N} = y ]; then set -xe; goreleaser --rm-dist; fi
|
||||||
|
@ -238,6 +240,7 @@ ifdef DOCKER_IMAGE
|
||||||
ifneq ($(DOCKER_IMAGE),none)
|
ifneq ($(DOCKER_IMAGE),none)
|
||||||
.PHONY: docker.build
|
.PHONY: docker.build
|
||||||
docker.build:
|
docker.build:
|
||||||
|
$(call check-program, docker)
|
||||||
$(call docker_build,$(DOCKERFILE_PATH),$(DOCKER_IMAGE))
|
$(call docker_build,$(DOCKERFILE_PATH),$(DOCKER_IMAGE))
|
||||||
|
|
||||||
BUILD_STEPS += docker.build
|
BUILD_STEPS += docker.build
|
||||||
|
|
Loading…
Reference in a new issue