Skip to content

Commit 50647c8

Browse files
ci: update workflow runners and actions in release workflows - old runners are no longer working
1 parent 8a6fdbe commit 50647c8

2 files changed

Lines changed: 28 additions & 28 deletions

File tree

.github/workflows/release-pullrequest.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
name: Build and Push
1414
strategy:
1515
matrix:
16-
runner: [buildjet-2vcpu-ubuntu-2204-arm, buildjet-2vcpu-ubuntu-2204]
16+
runner: [ubuntu-22.04-arm, ubuntu-22.04]
1717
include:
18-
- runner: buildjet-2vcpu-ubuntu-2204-arm
18+
- runner: ubuntu-22.04-arm
1919
platform: linux/arm64
20-
- runner: buildjet-2vcpu-ubuntu-2204
20+
- runner: ubuntu-22.04
2121
platform: linux/amd64
2222
runs-on: ${{ matrix.runner }}
2323

@@ -33,23 +33,23 @@ jobs:
3333
3434
- name: Docker meta
3535
id: meta
36-
uses: docker/metadata-action@v5
36+
uses: docker/metadata-action@v6
3737
with:
3838
images: ${{ env.GHCR_REPO }}
3939

4040
- name: Login to GHCR
41-
uses: docker/login-action@v3
41+
uses: docker/login-action@v4
4242
with:
4343
registry: ghcr.io
4444
username: ${{ github.repository_owner }}
4545
password: ${{ secrets.GITHUB_TOKEN }}
4646

4747
- name: Set up Docker Buildx
48-
uses: docker/setup-buildx-action@v3
48+
uses: docker/setup-buildx-action@v4
4949

5050
- name: Build and NOT push
5151
id: build
52-
uses: docker/build-push-action@v5
52+
uses: docker/build-push-action@v7
5353
with:
5454
platforms: ${{ matrix.platform }}
5555
push: false
@@ -58,15 +58,15 @@ jobs:
5858
test:
5959
runs-on: ubuntu-latest
6060
steps:
61-
- uses: actions/checkout@v4
62-
- uses: actions/setup-go@v5
61+
- uses: actions/checkout@v6
62+
- uses: actions/setup-go@v6
6363
with:
6464
go-version: 'stable'
6565
- name: Gather dependencies
6666
run: go mod download
6767
- name: Run coverage
68-
run: go test -race -tags=unit,integration -p 1 -coverprofile=coverage.txt -covermode=atomic ./...
68+
run: go test -race -tags=unit,integration -p 1 -timeout 30m -coverprofile=coverage.txt -covermode=atomic ./... -coverpkg=./...
6969
- name: Upload coverage to Codecov
70-
uses: codecov/codecov-action@v4
70+
uses: codecov/codecov-action@v6
7171
with:
7272
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/release-tag.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: release-tag
22

33
on:
44
push:
5-
tags: [ '[0-9]+.[0-9]+.[0-9]+' ]
5+
tags: [ '[0-9]+.[0-9]+.[0-9]+', '[0-9]+.[0-9]+.[0-9]+-*' ]
66

77
env:
88
GHCR_REPO: ghcr.io/${{ github.repository }}
@@ -13,11 +13,11 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
runner: [buildjet-2vcpu-ubuntu-2204-arm, buildjet-2vcpu-ubuntu-2204]
16+
runner: [ubuntu-22.04-arm, ubuntu-22.04]
1717
include:
18-
- runner: buildjet-2vcpu-ubuntu-2204-arm
18+
- runner: ubuntu-22.04-arm
1919
platform: linux/arm64
20-
- runner: buildjet-2vcpu-ubuntu-2204
20+
- runner: ubuntu-22.04
2121
platform: linux/amd64
2222
runs-on: ${{ matrix.runner }}
2323

@@ -33,23 +33,23 @@ jobs:
3333
3434
- name: Docker meta
3535
id: meta
36-
uses: docker/metadata-action@v5
36+
uses: docker/metadata-action@v6
3737
with:
3838
images: ${{ env.GHCR_REPO }}
3939

4040
- name: Login to GHCR
41-
uses: docker/login-action@v3
41+
uses: docker/login-action@v4
4242
with:
4343
registry: ghcr.io
4444
username: ${{ github.repository_owner }}
4545
password: ${{ secrets.GITHUB_TOKEN }}
4646

4747
- name: Set up Docker Buildx
48-
uses: docker/setup-buildx-action@v3
48+
uses: docker/setup-buildx-action@v4
4949

5050
- name: Build and push by digest
5151
id: build
52-
uses: docker/build-push-action@v5
52+
uses: docker/build-push-action@v7
5353
with:
5454
platforms: ${{ matrix.platform }}
5555
push: true
@@ -63,7 +63,7 @@ jobs:
6363
touch "/tmp/digests/${digest#sha256:}"
6464
6565
- name: Upload digest
66-
uses: actions/upload-artifact@v4
66+
uses: actions/upload-artifact@v7
6767
with:
6868
name: digests-${{ env.PLATFORM_PAIR }}
6969
path: /tmp/digests/*
@@ -79,25 +79,25 @@ jobs:
7979
packages: write
8080
steps:
8181
- name: Download digests
82-
uses: actions/download-artifact@v4
82+
uses: actions/download-artifact@v8
8383
with:
8484
path: /tmp/digests
8585
pattern: digests-*
8686
merge-multiple: true
8787

8888
- name: Login to GHCR
89-
uses: docker/login-action@v3
89+
uses: docker/login-action@v4
9090
with:
9191
registry: ghcr.io
9292
username: ${{ github.repository_owner }}
9393
password: ${{ secrets.GITHUB_TOKEN }}
9494

9595
- name: Set up Docker Buildx
96-
uses: docker/setup-buildx-action@v3
96+
uses: docker/setup-buildx-action@v4
9797

9898
- name: Docker meta
9999
id: meta
100-
uses: docker/metadata-action@v5
100+
uses: docker/metadata-action@v6
101101
with:
102102
images: ${{ env.GHCR_REPO }}
103103

@@ -114,15 +114,15 @@ jobs:
114114
test:
115115
runs-on: ubuntu-latest
116116
steps:
117-
- uses: actions/checkout@v4
118-
- uses: actions/setup-go@v5
117+
- uses: actions/checkout@v6
118+
- uses: actions/setup-go@v6
119119
with:
120120
go-version: 'stable'
121121
- name: Gather dependencies
122122
run: go mod download
123123
- name: Run coverage
124-
run: go test -race -tags=unit,integration -p 1 -coverprofile=coverage.txt -covermode=atomic ./...
124+
run: go test -race -tags=unit,integration -p 1 -timeout 30m -coverprofile=coverage.txt -covermode=atomic ./... -coverpkg=./...
125125
- name: Upload coverage to Codecov
126-
uses: codecov/codecov-action@v4
126+
uses: codecov/codecov-action@v6
127127
with:
128128
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)