From 3096d46cd9e5f06040745b3967e6b8f988ff4480 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Fri, 9 Aug 2024 16:02:34 -0500 Subject: [PATCH] update update update --- .github/workflows/build.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8f2b85e2..df483a01 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,10 +21,16 @@ jobs: uses: actions/checkout@v3 - name: Make docker image - uses: make docker-build + working-directory: . + run: make docker-build + + - name: Add SHORT_SHA env property with commit short sha + run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV - name: Retag docker image - uses: docker tag stellar/stellar-etl:${{ github.sha }} stellar/stellar-etl-dev:${{ github.sha }} + working-directory: . + run: docker tag stellar/stellar-etl:${SHORT_SHA} stellar/stellar-etl-dev:${SHORT_SHA} - name: Push docker image - uses: docker push stellar/stellar-etl-dev:${{ github.sha }} + working-directory: . + run: docker push stellar/stellar-etl-dev:${SHORT_SHA}