From 46635349dba0b646e285e51c56d27e2f77c21e7d Mon Sep 17 00:00:00 2001 From: Daniel D'Avella Date: Wed, 1 Nov 2023 10:44:21 -0400 Subject: [PATCH] Publish versioned image --- .github/workflows/image_to_aws.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/image_to_aws.yml b/.github/workflows/image_to_aws.yml index 4cac9fd6..98628f61 100644 --- a/.github/workflows/image_to_aws.yml +++ b/.github/workflows/image_to_aws.yml @@ -27,6 +27,8 @@ jobs: id: login-ecr uses: aws-actions/amazon-ecr-login@v2 - name: Build & Push Base Image - # TODO: we really should tag with a specific version as well, but that will come later - run: | - docker buildx build --push -t ${{ steps.login-ecr.outputs.registry }}/pixee/codemodder-python:latest . + run: > + docker buildx build --push \ + -t ${{ steps.login-ecr.outputs.registry }}/pixee/codemodder-python:latest \ + -t ${{ steps.login-ecr.outputs.registry }}/pixee/codemodder-python:${{ github.ref_name }} \ + .