From a8ac7af9917fdf369db719cce746d3ad3fe5507c Mon Sep 17 00:00:00 2001 From: MPThLee Date: Sat, 9 Nov 2024 18:26:56 +0900 Subject: [PATCH] feat: update ci actions --- .github/workflows/ci.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee7c6f2..8ad4a33 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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(); @@ -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 }} @@ -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: | @@ -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 @@ -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: | @@ -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 }}