diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 04be4fd5..c7704eed 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,4 +37,29 @@ jobs: with: args: --timeout=60m -E gofmt --verbose --print-resources-usage --build-tags full env: - GOGC: "10" \ No newline at end of file + GOGC: "10" + + + # test go releaser + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Setup Snap + run: | + set -e + sudo snap install snapcraft --classic + # https://github.com/goreleaser/goreleaser/pull/2117 + mkdir -p $HOME/.cache/snapcraft/download + mkdir -p $HOME/.cache/snapcraft/stage-packages + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v5 + with: + distribution: goreleaser + version: latest + args: release --snapshot --clean + env: + SKIP_PUSH: "true" diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 95514529..a405943e 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -114,6 +114,34 @@ builds: - arm64 main: ./plugin/failtoban binary: plugins/failtoban + tags: + - full + - id: plugin_workingdirbykey + env: + - CGO_ENABLED=0 + goos: + - linux + - windows + # - darwin + goarch: + - amd64 + - arm64 + main: ./plugin/workingdirbykey + binary: plugins/workingdirbykey + tags: + - full + - id: plugin_totp + env: + - CGO_ENABLED=0 + goos: + - linux + - windows + # - darwin + goarch: + - amd64 + - arm64 + main: ./plugin/totp + binary: plugins/totp tags: - full @@ -140,6 +168,8 @@ archives: - plugin_failtoban - plugin_docker - plugin_kubernetes + - plugin_workingdirbykey + - plugin_totp dockers: - image_templates: - "farmer1992/sshpiperd:v{{ .Version }}-amd64" @@ -255,6 +285,8 @@ snapcrafts: - plugin_yaml - plugin_fixed - plugin_failtoban + - plugin_workingdirbykey + - plugin_totp name: sshpiperd name_template: "sshpiperd_{{ .Version }}_{{ .Os }}_{{ .Arch }}" summary: The missing reverse proxy for ssh scp