From e739d3f62b1e108e08b48c3a6818c8dd6b7e45ed Mon Sep 17 00:00:00 2001 From: "Harold Spencer Jr." Date: Thu, 25 Sep 2025 15:38:28 -0700 Subject: [PATCH] Update Docker Buildx tagging (#88) --- .github/workflows/build-release.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 49d7839..cb06887 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -102,6 +102,10 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 + - name: Set Github short SHA Tag + id: vars + run: echo "short_sha=${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT" + - name: Build, tag and push to AWS Marketplace ECR env: MARKETPL_REGISTRY: ${{ steps.login-ecr.outputs.registry }} @@ -112,9 +116,9 @@ jobs: platforms: linux/amd64,linux/aarch64 push: true tags: | - ${MARKETPL_REGISTRY}/${MARKETPL_REPOSITORY}:${IMAGE_RELEASE_TAG} - ${MARKETPL_REGISTRY}/${MARKETPL_REPOSITORY}:${GITHUB_SHA} - ${MARKETPL_REGISTRY}/${MARKETPL_REPOSITORY}:${GITHUB_SHA::7} + ${{ env.MARKETPL_REGISTRY }}/${{ env.MARKETPL_REPOSITORY }}:${{ env.IMAGE_RELEASE_TAG }} + ${{ env.MARKETPL_REGISTRY }}/${{ env.MARKETPL_REPOSITORY }}:${{ github.sha }} + ${{ env.MARKETPL_REGISTRY }}/${{ env.MARKETPL_REPOSITORY }}:${{ steps.vars.outputs.short_sha }} - name: Install MCP Publisher run: |