Skip to content

Commit f6181ff

Browse files
[fix] git workflow
1 parent 956dd85 commit f6181ff

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,11 @@ jobs:
140140
141141
- name: Build Docker image
142142
id: build-image
143+
env:
144+
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
143145
run: |
144146
IMAGE_TAG=${{ steps.meta.outputs.short_sha }}
145-
ECR_IMAGE=${{ secrets.ECR_REPOSITORY_URL }}:$IMAGE_TAG
147+
ECR_IMAGE=$ECR_REGISTRY/${{ secrets.ECR_REPOSITORY_NAME }}:$IMAGE_TAG
146148
docker build -t $ECR_IMAGE .
147149
echo "ECR_IMAGE=$ECR_IMAGE" >> $GITHUB_ENV
148150

0 commit comments

Comments
 (0)