From 43a6d81fe7240bf70b86da5d621134d680e1ce45 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 11 Dec 2023 20:34:32 -0800 Subject: [PATCH] update gh actions --- .github/workflows/build_and_push_docker_images.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_and_push_docker_images.yml b/.github/workflows/build_and_push_docker_images.yml index a309277..4b52a7f 100644 --- a/.github/workflows/build_and_push_docker_images.yml +++ b/.github/workflows/build_and_push_docker_images.yml @@ -58,20 +58,19 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Extract GCR metadata (tags, labels) for Docker vessel-detection + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v4 with: - images: ${{ env.GCR }}/${{ env.GCR_IMAGE_NAME }}/vessel-detection + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | type=sha,format=short - type=raw,value=latest + type=raw,value=latest,enable={{is_default_branch}} - - name: Build and push Docker image vessel-detection to GCR + - name: Build and push Docker image uses: docker/build-push-action@v3 with: context: . - file: Dockerfile push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}