From 1ae3822dc2ddf14c74da1d119e1b52b312cbf20a Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Wed, 13 Dec 2023 15:19:37 +0800 Subject: [PATCH] Update docker.yml --- .github/workflows/docker.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 78b751781183..1e7482119d18 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,4 +1,4 @@ -name: Create and publish CUDA docker image +name: Create and publish docker image on: workflow_dispatch: @@ -50,10 +50,7 @@ jobs: # Workaround: https://github.com/docker/build-push-action/issues/461 - name: Setup Docker buildx - uses: docker/setup-buildx-action@v3.0.0 - with: - # Needed to support OCI annotations - version: v0.12.0 + uses: docker/setup-buildx-action@v2.0.0 # Login against a Docker registry except on PR # https://github.com/docker/login-action @@ -81,7 +78,7 @@ jobs: - name: Docker meta id: meta - uses: docker/metadata-action@v5.0.0 + uses: docker/metadata-action@v4 with: # list of Docker images to use as base name for tags images: | @@ -98,14 +95,13 @@ jobs: # https://github.com/docker/build-push-action - name: Build and push Docker image id: build-and-push - uses: docker/build-push-action@v5.1.0 + uses: docker/build-push-action@v3.1.1 with: file: Dockerfile push: true context: . tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - annotations: ${{ steps.meta.outputs.labels }} cache-from: ${{ steps.cache.outputs.cache-from }} cache-to: ${{ steps.cache.outputs.cache-to }} build-args: RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }} @@ -116,3 +112,4 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} repository: tabbyml/tabby +