@@ -14,11 +14,11 @@ jobs:
14
14
validate :
15
15
if : github.event.workflow_run.event == 'push' && github.event.workflow_run.conclusion == 'success' && github.repository_owner == 'armadaproject'
16
16
name : " Validate revision"
17
- runs-on : ubuntu-22.04
17
+ runs-on : ubuntu-latest
18
18
19
19
steps :
20
20
- name : " Checkout"
21
- uses : " actions/checkout@v3 "
21
+ uses : " actions/checkout@v4 "
22
22
with :
23
23
fetch-depth : 0
24
24
@@ -40,19 +40,20 @@ jobs:
40
40
release :
41
41
name : Release
42
42
needs : validate
43
- runs-on : " ubuntu-22.04 "
43
+ runs-on : " ubuntu-latest "
44
44
environment : armada-dockerhub
45
45
46
46
steps :
47
47
- name : " Checkout"
48
- uses : " actions/checkout@v3 "
48
+ uses : " actions/checkout@v4 "
49
49
with :
50
50
fetch-depth : 0
51
51
52
- - name : Setup Golang with Cache
53
- uses : magnetikonline/action-golang-cache@v4
52
+ - name : Setup Go
53
+ id : setup-go
54
+ uses : ./.github/actions/setup-go-cache
54
55
with :
55
- go-version : " 1.20 "
56
+ cache-prefix : go-build
56
57
57
58
- name : Set up Docker Buildx
58
59
id : buildx
@@ -65,17 +66,15 @@ jobs:
65
66
password : " ${{ secrets.DOCKERHUB_PASS }}"
66
67
67
68
- name : " Run GoReleaser"
68
- uses : " goreleaser/goreleaser-action@v4 "
69
+ uses : " goreleaser/goreleaser-action@v5 "
69
70
with :
70
71
distribution : " goreleaser"
71
- version : v1.19.2
72
+ version : v1.21.1
72
73
args : " -f ./.goreleaser.yaml release --snapshot --skip-sbom --skip-sign --clean"
73
74
env :
74
75
DOCKER_REPO : " gresearch"
75
76
GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
76
77
DOCKER_BUILDX_BUILDER : " ${{ steps.buildx.outputs.name }}"
77
- DOCKER_BUILDX_CACHE_FROM : " type=gha"
78
- DOCKER_BUILDX_CACHE_TO : " type=gha,mode=max"
79
78
80
79
- name : Run Docker push script
81
80
run : ./scripts/docker-push.sh -t '${{ github.event.workflow_run.head_sha }}'
0 commit comments