From 6ce9932dc75e4882509b45b9ade17d50e739de5d Mon Sep 17 00:00:00 2001 From: Leigh MacDonald Date: Sat, 18 Nov 2023 07:01:52 -0700 Subject: [PATCH] update workflow --- .github/workflows/deploy.yml | 28 ++++++++++++---------------- .goreleaser.yaml | 27 +++++++++++++++------------ 2 files changed, 27 insertions(+), 28 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9ac08009d..4a92ddb6b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -108,14 +108,10 @@ jobs: with: fetch-depth: 0 - - run: git fetch --force --tags - - uses: actions/setup-go@v4 with: go-version: 'stable' - - run: go mod tidy - - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: @@ -130,23 +126,23 @@ jobs: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.PASSPHRASE }} - - uses: goreleaser/goreleaser-action@v5 - if: success() && startsWith(github.ref, 'refs/tags/v') - with: - distribution: goreleaser - version: latest - args: release --clean - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }} - DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }} - GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} - - name: Build & publish image run: | docker build . --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_REF##*/} docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_REF##*/} +# - uses: goreleaser/goreleaser-action@v5 +# if: success() && startsWith(github.ref, 'refs/tags/v') +# with: +# distribution: goreleaser +# version: latest +# args: release --clean +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }} +# DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }} +# GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} + - name: Upload snapshot if: success() && ${{ startsWith(github.ref, 'refs/tags/v') }} uses: actions/upload-artifact@v3 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 9a5394394..d1dd6d30a 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -73,19 +73,22 @@ signs: - "--detach-sign" - "${artifact}" -announce: - discord: - enabled: true - message_template: 'gbans {{.Tag}} is out!' +sboms: + - artifacts: archive - # Set author of the embed. - # Defaults to `GoReleaser` - author: 'Leigh MacDonald' - # color: '' - - # URL to an image to use as the icon for the embed. - # Defaults to `https://goreleaser.com/static/avatar.png` - # icon_url: '' +#announce: +# discord: +# enabled: true +# message_template: 'gbans {{.Tag}} is out!' +# +# # Set author of the embed. +# # Defaults to `GoReleaser` +# author: 'Leigh MacDonald' +# # color: '' +# +# # URL to an image to use as the icon for the embed. +# # Defaults to `https://goreleaser.com/static/avatar.png` +# # icon_url: '' # yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json # vim: set ts=2 sw=2 tw=0 fo=cnqoj