Skip to content

Commit

Permalink
Merge pull request #470 from cybertec-postgresql/469_update_release_a…
Browse files Browse the repository at this point in the history
…ction

[+] bump `elgohr/Publish-Docker-Github-Action` to v4, closes #469
[+] bump actions/setup-go to v3
[*] use on release trigger for the Release workflow
  • Loading branch information
pashagolub committed Apr 25, 2022
2 parents 6d4933b + 98a0e86 commit a0c5462
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Expand Up @@ -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
Expand Down
20 changes: 7 additions & 13 deletions .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:

Expand All @@ -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
Expand All @@ -44,7 +38,7 @@ jobs:
steps:

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Version strings
id: version
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit a0c5462

Please sign in to comment.