From 936c3cc4d7d96f4353661e035afad9c86c5ec8a1 Mon Sep 17 00:00:00 2001 From: Bowen Liang Date: Sat, 30 Dec 2023 10:58:28 +0800 Subject: [PATCH] ci: Bump Docker Github actions (#1852) --- .github/workflows/build-api-image.yml | 8 ++++---- .github/workflows/build-web-image.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-api-image.yml b/.github/workflows/build-api-image.yml index d1dcdcdbe3..dfb4ec1847 100644 --- a/.github/workflows/build-api-image.yml +++ b/.github/workflows/build-api-image.yml @@ -14,10 +14,10 @@ jobs: if: github.event.pull_request.draft == false steps: - 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: Login to Docker Hub uses: docker/login-action@v2 @@ -27,7 +27,7 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: langgenius/dify-api tags: | @@ -37,7 +37,7 @@ jobs: type=raw,value=${{ github.ref_name }},enable=${{ startsWith(github.ref, 'refs/tags/') }} - name: Build and push - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: "{{defaultContext}}:api" platforms: ${{ startsWith(github.ref, 'refs/tags/') && 'linux/amd64,linux/arm64' || 'linux/amd64' }} diff --git a/.github/workflows/build-web-image.yml b/.github/workflows/build-web-image.yml index b9928bbd7f..e6541ed506 100644 --- a/.github/workflows/build-web-image.yml +++ b/.github/workflows/build-web-image.yml @@ -14,10 +14,10 @@ jobs: if: github.event.pull_request.draft == false steps: - 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: Login to Docker Hub uses: docker/login-action@v2 @@ -27,7 +27,7 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: langgenius/dify-web tags: | @@ -37,7 +37,7 @@ jobs: type=raw,value=${{ github.ref_name }},enable=${{ startsWith(github.ref, 'refs/tags/') }} - name: Build and push - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: "{{defaultContext}}:web" platforms: ${{ startsWith(github.ref, 'refs/tags/') && 'linux/amd64,linux/arm64' || 'linux/amd64' }}