Skip to content

Commit 6786a9c

Browse files
committed
chore: update github workflow action versions
1 parent 43affe5 commit 6786a9c

File tree

3 files changed

+19
-15
lines changed

3 files changed

+19
-15
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Set up Go
11-
uses: actions/setup-go@v2
11+
uses: actions/setup-go@v3
1212
with:
1313
go-version: 1.19
1414

1515
- name: Check out code into the Go module directory
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1717

1818
- name: Download dependencies
1919
run: sudo apt update && sudo apt install -y build-essential libpng-dev

.github/workflows/release.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Set up Go
14-
uses: actions/setup-go@v2
14+
uses: actions/setup-go@v3
1515
with:
1616
go-version: 1.19
1717

1818
- name: Check out code into the Go module directory
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2020
with:
2121
fetch-depth: 0
2222

2323
- name: Download dependencies
2424
run: sudo apt update && sudo apt install -y build-essential libpng-dev
2525

2626
- name: Run GoReleaser
27-
uses: goreleaser/goreleaser-action@v2
27+
uses: goreleaser/goreleaser-action@v3
2828
with:
2929
version: latest
3030
args: release --rm-dist
@@ -36,35 +36,37 @@ jobs:
3636
runs-on: ubuntu-latest
3737
steps:
3838
- name: Check out code into the Go module directory
39-
uses: actions/checkout@v2
39+
uses: actions/checkout@v3
4040
with:
4141
fetch-depth: 0
4242

4343
- name: Login to GitHub Container Registry
44-
uses: docker/login-action@v1
44+
uses: docker/login-action@v2
4545
with:
4646
registry: ghcr.io
4747
username: ${{ github.actor }}
4848
password: ${{ secrets.GITHUB_TOKEN }}
4949

5050
- name: Extract metadata (tags, labels) for Docker
5151
id: meta
52-
uses: docker/metadata-action@v3
52+
uses: docker/metadata-action@v4
5353
with:
5454
images: ghcr.io/${{ github.repository }}
5555

5656
- name: Set up Docker Buildx
5757
id: buildx
58-
uses: docker/setup-buildx-action@v1
58+
uses: docker/setup-buildx-action@v2
5959
with:
6060
buildkitd-flags: --debug
6161

6262
- name: Build and push Docker image
63-
uses: docker/build-push-action@v2
63+
uses: docker/build-push-action@v3
6464
with:
6565
context: .
6666
push: true
6767
tags: ${{ steps.meta.outputs.tags }}
6868
labels: ${{ steps.meta.outputs.labels }}
6969
build-args: |
7070
TARGET_ENV=${{ matrix.release }}
71+
cache-from: type=gha
72+
cache-to: type=gha,mode=max

.github/workflows/staging.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check out code into the Go module directory
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515
with:
1616
fetch-depth: 0
1717

1818
- name: Login to GitHub Container Registry
19-
uses: docker/login-action@v1
19+
uses: docker/login-action@v2
2020
with:
2121
registry: ghcr.io
2222
username: ${{ github.actor }}
2323
password: ${{ secrets.GITHUB_TOKEN }}
2424

2525
- name: Extract metadata (tags, labels) for Docker
2626
id: meta
27-
uses: docker/metadata-action@v3
27+
uses: docker/metadata-action@v4
2828
with:
2929
images: ghcr.io/${{ github.repository }}
3030
flavor: |
@@ -34,14 +34,16 @@ jobs:
3434
3535
- name: Set up Docker Buildx
3636
id: buildx
37-
uses: docker/setup-buildx-action@v1
37+
uses: docker/setup-buildx-action@v2
3838
with:
3939
buildkitd-flags: --debug
4040

4141
- name: Build and push Docker image
42-
uses: docker/build-push-action@v2
42+
uses: docker/build-push-action@v3
4343
with:
4444
context: .
4545
push: true
4646
tags: ${{ steps.meta.outputs.tags }}
4747
labels: ${{ steps.meta.outputs.labels }}
48+
cache-from: type=gha
49+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)