From 98a0e86a2536a47e680af6b4141d66d49c7f381e Mon Sep 17 00:00:00 2001 From: Pavlo Golub Date: Mon, 25 Apr 2022 14:17:21 +0200 Subject: [PATCH] [+] bump `elgohr/Publish-Docker-Github-Action` to v4, closes #469 [+] bump `actions/setup-go` to v3 [*] use `on release` trigger for the `Release` workflow --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/release.yml | 20 +++++++------------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 31ec31ac..960cdb28 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -39,7 +39,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a243e229..ec8a021c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,13 +1,7 @@ name: Release on: - push: - # ignore all branches - branches-ignore: - - '*' - # run for every tag with version string - tags: - - v[0-9]+.[0-9]+.[0-9]+ - - v[0-9]+.[0-9]+.[0-9]+-beta[0-9]? + release: + types: [created] jobs: @@ -17,12 +11,12 @@ jobs: steps: - name: Set up Golang - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: '1.17' - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Unshallow run: git fetch --prune --unshallow @@ -44,7 +38,7 @@ jobs: steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Version strings id: version @@ -54,7 +48,7 @@ jobs: - name: Publish beta version to Registry if: ${{ contains(github.ref_name, 'beta') }} - uses: elgohr/Publish-Docker-Github-Action@master + uses: elgohr/Publish-Docker-Github-Action@v4 env: GIT_HASH: ${{ steps.version.outputs.RELEASE_VERSION }} GIT_TIME: ${{ steps.version.outputs.RELEASE_TIME }} @@ -68,7 +62,7 @@ jobs: - name: Publish release version to Registry if: ${{ !contains(github.ref_name, 'beta') }} - uses: elgohr/Publish-Docker-Github-Action@master + uses: elgohr/Publish-Docker-Github-Action@v4 env: GIT_HASH: ${{ steps.version.outputs.RELEASE_VERSION }} GIT_TIME: ${{ steps.version.outputs.RELEASE_TIME }}