From 118ff77b2db27e2aec2f5fc7a68915433d1b8264 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 28 Jun 2024 10:59:37 +0200 Subject: [PATCH] fix publish ecr --- .github/workflows/docker-image.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index d887fea45a..a926f95857 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -543,14 +543,20 @@ jobs: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - + + - name: get git hash + if: github.event_name != 'pull_request' + id: git_hash + run: | + git_hash=$(git rev-parse --short "$GITHUB_SHA") + echo "GIT_HASH=${git_hash:0:7}" >> "$GITHUB_OUTPUT" - uses: shrink/actions-docker-extract@v3 if: github.event_name != 'pull_request' id: extract with: image: |- - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee:${{ steps.push_ecr.outputs.GIT_HASH }} + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee:${{ steps.git_hash.outputs.GIT_HASH }} path: "/static_frontend/." - uses: reggionick/s3-deploy@v3