Skip to content

Commit f04c6c7

Browse files
committed
Refactor (ci): Update actions to node 20
1 parent 95d3d96 commit f04c6c7

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/ci-master-pr.yml

+14-14
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424

2525
# This is commented out, so we use the default 'docker' driver instead of the 'docker-container' driver. When using 'docker-container' driver, there appears to be a rate limit on writes on Github CI which causes buildx to fail with error code 17 when it is exporting to cache
2626
# - name: Set up Docker Buildx
2727
# id: buildx
28-
# uses: docker/setup-buildx-action@v2
28+
# uses: docker/setup-buildx-action@v3
2929

3030
- name: Cache Docker layers
31-
uses: actions/cache/restore@v3 # Restore cache but don't save it at end of job
31+
uses: actions/cache/restore@v4 # Restore cache but don't save it at end of job
3232
with:
3333
path: /tmp/.buildx-cache-asp
3434
key: ${{ runner.os }}-buildx-asp-${{ github.sha }}
@@ -82,14 +82,14 @@ jobs:
8282
8383
# See: https://github.com/docker/build-push-action/blob/v2.6.1/docs/advanced/cache.md#github-cache
8484
- name: Set up QEMU
85-
uses: docker/setup-qemu-action@v2
85+
uses: docker/setup-qemu-action@v3
8686

8787
- name: Set up Docker Buildx
8888
id: buildx
89-
uses: docker/setup-buildx-action@v2
89+
uses: docker/setup-buildx-action@v3
9090

9191
- name: Cache Docker layers
92-
uses: actions/cache@v3
92+
uses: actions/cache@v4
9393
with:
9494
path: /tmp/.buildx-cache-asp
9595
key: ${{ runner.os }}-buildx-${{ github.sha }}
@@ -99,7 +99,7 @@ jobs:
9999
# This step generates the docker tags
100100
- name: Docker meta
101101
id: meta
102-
uses: docker/metadata-action@v4
102+
uses: docker/metadata-action@v5
103103
with:
104104
images: |
105105
${{ github.repository }}
@@ -120,15 +120,15 @@ jobs:
120120
- name: Login to Docker Hub registry
121121
# Run on master and tags
122122
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
123-
uses: docker/login-action@v2
123+
uses: docker/login-action@v3
124124
with:
125125
username: ${{ secrets.DOCKERHUB_REGISTRY_USER }}
126126
password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }}
127127

128128
- name: Build (PRs)
129129
# Run on pull requests
130130
if: github.event_name == 'pull_request'
131-
uses: docker/build-push-action@v3
131+
uses: docker/build-push-action@v5
132132
with:
133133
file: Dockerfile
134134
context: '.'
@@ -142,7 +142,7 @@ jobs:
142142
- name: Build and push
143143
# Run on master and tags
144144
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
145-
uses: docker/build-push-action@v3
145+
uses: docker/build-push-action@v5
146146
with:
147147
file: Dockerfile
148148
context: '.'
@@ -167,7 +167,7 @@ jobs:
167167
runs-on: ubuntu-latest
168168
steps:
169169
# Drafts your next Release notes as Pull Requests are merged into "master"
170-
- uses: release-drafter/release-drafter@v5
170+
- uses: release-drafter/release-drafter@v6
171171
with:
172172
config-name: release-drafter.yml
173173
publish: false
@@ -180,7 +180,7 @@ jobs:
180180
runs-on: ubuntu-latest
181181
steps:
182182
# Drafts your next Release notes as Pull Requests are merged into "master"
183-
- uses: release-drafter/release-drafter@v5
183+
- uses: release-drafter/release-drafter@v6
184184
with:
185185
config-name: release-drafter.yml
186186
publish: true
@@ -194,9 +194,9 @@ jobs:
194194
if: github.ref == 'refs/heads/master'
195195
runs-on: ubuntu-latest
196196
steps:
197-
- uses: actions/checkout@v3
197+
- uses: actions/checkout@v4
198198
- name: Docker Hub Description
199-
uses: peter-evans/dockerhub-description@v3
199+
uses: peter-evans/dockerhub-description@v4
200200
with:
201201
username: ${{ secrets.DOCKERHUB_REGISTRY_USER }}
202202
password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }}

0 commit comments

Comments
 (0)