Skip to content

Commit

Permalink
feat: update ci actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MPThLee authored Nov 9, 2024
1 parent 52956aa commit a8ac7af
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
name: Docker image test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

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

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

- name: Cache Docker layers
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand All @@ -47,7 +47,7 @@ jobs:
sed -i -r 's/mediawiki:latest/mediawiki:ci-test/g' docker-compose.yml
- name: Build a test image on amd64 and cache
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
cache-from: |
Expand Down Expand Up @@ -121,14 +121,14 @@ jobs:
# Docker Registry login
- name: Login to GitHub Container Registry
if: ${{ github.repository_owner == 'ShinyColorsWiki' && github.ref == 'refs/heads/master' }}
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

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

# Build and push
- name: Build a multi-platform docker image and push (for master)
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
cache-from: |
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
if: ${{ github.repository_owner == 'ShinyColorsWiki' && github.ref == 'refs/heads/master' }}
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.BOT_PA_TOKEN }}
repository: ${{ secrets.REPO_NAME }}
Expand Down

0 comments on commit a8ac7af

Please sign in to comment.