Skip to content

Commit 033de69

Browse files
committed
add epoch timestamp to allow rebuilding on same sha
1 parent 84fe49c commit 033de69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.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 }}"
43+
docker build -t "$ECR_REGISTRY/$ECR_REPOSITORY:latest" -t "$ECR_REGISTRY/$ECR_REPOSITORY:${{ github.sha }}_$(date +%s)"
4444
docker push "$ECR_REGISTRY/$ECR_REPOSITORY" --all-tags

0 commit comments

Comments
 (0)