Skip to content

Commit c6499c9

Browse files
committed
immutable tags mean should use sha only not branch names
1 parent cea164c commit c6499c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ jobs:
4040
ECR_REPOSITORY: 'ssh_bastion'
4141
IMAGE_TAG: latest
4242
run: |
43-
docker build -t "$ECR_REGISTRY"/"$ECR_REPOSITORY":latest -t "$ECR_REGISTRY"/"$ECR_REPOSITORY":${{ github.sha }} -t "$ECR_REGISTRY/$ECR_REPOSITORY":${{ github.ref_name }} .
43+
docker build -t "$ECR_REGISTRY"/"$ECR_REPOSITORY":latest -t "$ECR_REGISTRY"/"$ECR_REPOSITORY":${{ github.sha }}
4444
docker push "$ECR_REGISTRY/$ECR_REPOSITORY" --all-tags

0 commit comments

Comments
 (0)