Skip to content

Commit 62e67c6

Browse files
committed
edit image tags in the workflow
1 parent 1a2c861 commit 62e67c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/mlops_workflow.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [ main ]
66
pull_request:
77
branches: [ main ]
8+
89
env:
910
# Setting an environment variable with the value of a configuration variable
1011
ECR_BACKEND_IMAGE: ${{ vars.ECR_BACKEND_IMAGE }}
@@ -88,7 +89,7 @@ jobs:
8889
push: true
8990
platforms: linux/amd64,linux/arm64
9091
tags: |
91-
${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$ECR_BACKEND_IMAGE:latest
92+
${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ env.AWS_DEFAULT_REGION}}.amazonaws.com/${{ env.ECR_BACKEND_IMAGE}}:latest
9293
9394
- name: Clean up .env
9495
run: rm .env

0 commit comments

Comments
 (0)