Skip to content

Commit 2f32479

Browse files
authored
Update docker-image.yml
1 parent 1036cbc commit 2f32479

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,12 @@ jobs:
7070
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
7171
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
7272
aws-region: ${{ env.AWS_REGION }}
73-
7473
- name: Login to Amazon ECR
7574
id: login-ecr
7675
uses: aws-actions/amazon-ecr-login@v1
77-
76+
- uses: actions/checkout@v3
77+
- name: Add GITHUB_SHA_SHORT env property with commit short sha
78+
run: echo "GITHUB_SHA_SHORT=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
7879
- name: Push image to Amazon ECR
7980
id: push-image
8081
env:

0 commit comments

Comments
 (0)