Skip to content

Commit a8ac7af

Browse files
authored
feat: update ci actions
1 parent 52956aa commit a8ac7af

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/ci.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
name: Docker image test
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111

1212
- name: Modify scripts and get version
1313
id: version
14-
uses: actions/github-script@v6
14+
uses: actions/github-script@v7
1515
with:
1616
script: |
1717
const date = new Date();
@@ -25,13 +25,13 @@ jobs:
2525
core.setOutput('version', `${d}-${context.sha.substring(0, 7)}`);
2626
2727
- name: Set up QEMU
28-
uses: docker/setup-qemu-action@v2
28+
uses: docker/setup-qemu-action@v3
2929

3030
- name: Set up Docker Buildx
31-
uses: docker/setup-buildx-action@v2
31+
uses: docker/setup-buildx-action@v3
3232

3333
- name: Cache Docker layers
34-
uses: actions/cache@v3
34+
uses: actions/cache@v4
3535
with:
3636
path: /tmp/.buildx-cache
3737
key: ${{ runner.os }}-buildx-${{ github.sha }}
@@ -47,7 +47,7 @@ jobs:
4747
sed -i -r 's/mediawiki:latest/mediawiki:ci-test/g' docker-compose.yml
4848
4949
- name: Build a test image on amd64 and cache
50-
uses: docker/build-push-action@v3
50+
uses: docker/build-push-action@v6
5151
with:
5252
platforms: linux/amd64
5353
cache-from: |
@@ -121,14 +121,14 @@ jobs:
121121
# Docker Registry login
122122
- name: Login to GitHub Container Registry
123123
if: ${{ github.repository_owner == 'ShinyColorsWiki' && github.ref == 'refs/heads/master' }}
124-
uses: docker/login-action@v2
124+
uses: docker/login-action@v3
125125
with:
126126
registry: ghcr.io
127127
username: ${{ github.repository_owner }}
128128
password: ${{ secrets.GITHUB_TOKEN }}
129129

130130
- name: Login to Quay.io Container Registry
131-
uses: docker/login-action@v2
131+
uses: docker/login-action@v3
132132
if: ${{ github.repository_owner == 'ShinyColorsWiki' && github.ref == 'refs/heads/master' }}
133133
with:
134134
registry: quay.io
@@ -137,7 +137,7 @@ jobs:
137137

138138
# Build and push
139139
- name: Build a multi-platform docker image and push (for master)
140-
uses: docker/build-push-action@v3
140+
uses: docker/build-push-action@v6
141141
with:
142142
platforms: linux/amd64,linux/arm64
143143
cache-from: |
@@ -172,7 +172,7 @@ jobs:
172172
if: ${{ github.repository_owner == 'ShinyColorsWiki' && github.ref == 'refs/heads/master' }}
173173
steps:
174174
- name: Repository Dispatch
175-
uses: peter-evans/repository-dispatch@v2
175+
uses: peter-evans/repository-dispatch@v3
176176
with:
177177
token: ${{ secrets.BOT_PA_TOKEN }}
178178
repository: ${{ secrets.REPO_NAME }}

0 commit comments

Comments
 (0)