Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit a0c5462

Browse files
authored
Merge pull request #470 from cybertec-postgresql/469_update_release_action
[+] bump `elgohr/Publish-Docker-Github-Action` to v4, closes #469 [+] bump actions/setup-go to v3 [*] use on release trigger for the Release workflow
2 parents 6d4933b + 98a0e86 commit a0c5462

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@v3
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL

.github/workflows/release.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
name: Release
22
on:
3-
push:
4-
# ignore all branches
5-
branches-ignore:
6-
- '*'
7-
# run for every tag with version string
8-
tags:
9-
- v[0-9]+.[0-9]+.[0-9]+
10-
- v[0-9]+.[0-9]+.[0-9]+-beta[0-9]?
3+
release:
4+
types: [created]
115

126
jobs:
137

@@ -17,12 +11,12 @@ jobs:
1711
steps:
1812

1913
- name: Set up Golang
20-
uses: actions/setup-go@v2
14+
uses: actions/setup-go@v3
2115
with:
2216
go-version: '1.17'
2317

2418
- name: Check out code into the Go module directory
25-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2620

2721
- name: Unshallow
2822
run: git fetch --prune --unshallow
@@ -44,7 +38,7 @@ jobs:
4438
steps:
4539

4640
- name: Check out code
47-
uses: actions/checkout@v2
41+
uses: actions/checkout@v3
4842

4943
- name: Version strings
5044
id: version
@@ -54,7 +48,7 @@ jobs:
5448
5549
- name: Publish beta version to Registry
5650
if: ${{ contains(github.ref_name, 'beta') }}
57-
uses: elgohr/Publish-Docker-Github-Action@master
51+
uses: elgohr/Publish-Docker-Github-Action@v4
5852
env:
5953
GIT_HASH: ${{ steps.version.outputs.RELEASE_VERSION }}
6054
GIT_TIME: ${{ steps.version.outputs.RELEASE_TIME }}
@@ -68,7 +62,7 @@ jobs:
6862

6963
- name: Publish release version to Registry
7064
if: ${{ !contains(github.ref_name, 'beta') }}
71-
uses: elgohr/Publish-Docker-Github-Action@master
65+
uses: elgohr/Publish-Docker-Github-Action@v4
7266
env:
7367
GIT_HASH: ${{ steps.version.outputs.RELEASE_VERSION }}
7468
GIT_TIME: ${{ steps.version.outputs.RELEASE_TIME }}

0 commit comments

Comments
 (0)