Skip to content

Commit 0a14715

Browse files
committed
Tests: Update actions to use Node.js 20 as recommended by Github Actions
1 parent 8868e9e commit 0a14715

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,19 @@ jobs:
4040
steps:
4141

4242
- name: Checkout code
43-
uses: actions/checkout@v3
43+
uses: actions/checkout@v4
4444
with:
4545
fetch-depth: 0
4646

4747
- name: Login to GHCR
48-
uses: docker/login-action@v2
48+
uses: docker/login-action@v3
4949
with:
5050
registry: ${{ env.REGISTRY_GHCR }}
5151
username: ${{ github.actor }}
5252
password: ${{ secrets.GITHUB_TOKEN }}
53+
5354
- name: Login to Docker Hub
54-
uses: docker/login-action@v2
55+
uses: docker/login-action@v3
5556
with:
5657
username: ${{ secrets.DOCKERHUB_USERNAME }}
5758
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -63,7 +64,7 @@ jobs:
6364
- name: Extract mix metadata (tags, labels)
6465
id: mixmeta
6566
if: github.ref_type == 'tag'
66-
uses: docker/metadata-action@v4
67+
uses: docker/metadata-action@v5
6768
with:
6869
images: |
6970
${{ env.REGISTRY_GHCR }}/${{ env.MIX_IMAGENAME_GHCR }}
@@ -94,12 +95,12 @@ jobs:
9495
echo "ecslocaltag=${{ env.REGISTRY_LOCAL }}/${{ env.ECS_IMAGENAME_GHCR }}:$tag" >> $GITHUB_OUTPUT
9596
9697
- name: Set up Docker Buildx
97-
uses: docker/setup-buildx-action@v2
98+
uses: docker/setup-buildx-action@v3
9899
with:
99100
driver-opts: network=host
100101

101102
- name: Build and push local mix image
102-
uses: docker/build-push-action@v4
103+
uses: docker/build-push-action@v5
103104
with:
104105
build-args: |
105106
VERSION=${{ steps.gitdescribe.outputs.ver }}
@@ -116,7 +117,7 @@ jobs:
116117
run: sed -i 's|ejabberd/mix|${{ steps.localreg.outputs.mixlocaltag }}|g' ecs/Dockerfile
117118

118119
- name: Build and push local ecs image
119-
uses: docker/build-push-action@v3
120+
uses: docker/build-push-action@v5
120121
with:
121122
build-args: |
122123
VERSION=${{ steps.gitdescribe.outputs.ver }}
@@ -152,7 +153,7 @@ jobs:
152153
docker image save ${{ steps.localreg.outputs.ecslocaltag }} --output ejabberd-latest.tar
153154
154155
- name: Upload image
155-
uses: actions/upload-artifact@v3
156+
uses: actions/upload-artifact@v4
156157
with:
157158
name: ejabberd-image
158159
path: ejabberd-latest.tar
@@ -163,7 +164,7 @@ jobs:
163164
"docker image load -i ejabberd-latest.tar"
164165
165166
- name: Build and push mix image
166-
uses: docker/build-push-action@v4
167+
uses: docker/build-push-action@v5
167168
if: github.ref_type == 'tag'
168169
with:
169170
build-args: |
@@ -178,7 +179,7 @@ jobs:
178179
${{ steps.mixmeta.outputs.tags }}
179180
180181
- name: Build and push ecs image
181-
uses: docker/build-push-action@v3
182+
uses: docker/build-push-action@v5
182183
if: github.ref_type == 'tag'
183184
with:
184185
build-args: |

0 commit comments

Comments
 (0)