From 18b6aaeb81aa871b844210525bdfdc7cfaa8d62c Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 4 Jul 2024 12:12:54 +0800 Subject: [PATCH] refactor: Update Docker image versions and artifact upload actions --- .github/workflows/build-docker.yml | 16 ++++++++-------- .github/workflows/pr-receive.yml | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 3e107909e..9326955e0 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get Version run: | @@ -28,19 +28,19 @@ jobs: run: echo $VERSION - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Login to DockerHub - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USER }} password: ${{ secrets.DOCKER_TOKEN }} - name: Build Development - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: ./docker/development platforms: linux/amd64 @@ -51,7 +51,7 @@ jobs: tags: yaoapp/yao:${{ env.VERSION }}-amd64-dev - name: Build Development Arm64 - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: ./docker/development platforms: linux/arm64 @@ -62,7 +62,7 @@ jobs: tags: yaoapp/yao:${{ env.VERSION }}-arm64-dev - name: Build Production - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: ./docker/production platforms: linux/amd64 @@ -73,7 +73,7 @@ jobs: tags: yaoapp/yao:${{ env.VERSION }}-amd64 - name: Build Production Arm64 - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: ./docker/production platforms: linux/arm64 diff --git a/.github/workflows/pr-receive.yml b/.github/workflows/pr-receive.yml index de37467e5..0fbb20af1 100644 --- a/.github/workflows/pr-receive.yml +++ b/.github/workflows/pr-receive.yml @@ -18,7 +18,7 @@ jobs: echo ${{ github.event.number }} > ./pr/NR echo ${{ github.event.pull_request.head.sha }} > ./pr/SHA - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: pr path: pr/