Browse Source

Add timestamp to prod tag

cldc-2563-aws-production-pipeline-backup
Sam Seed 1 year ago
parent
commit
60f26835d1
  1. 2
      .github/workflows/aws_deploy.yml

2
.github/workflows/aws_deploy.yml

@ -111,7 +111,7 @@ jobs:
env:
registry: ${{ steps.ecr-login.outputs.registry }}
commit_tag: ${{ steps.tags.outputs.commit-tag }}
readable_tag: ${{ inputs.environment }}-${{ steps.tags.outputs.additional-tag }}
readable_tag: ${{ inputs.environment }}-${{ steps.tags.outputs.additional-tag }}-${{ steps.timestamp.outputs.timestamp }}
run: |
manifest=$(aws ecr batch-get-image --repository-name $repository --image-ids imageTag=$commit_tag --output text --query images[].imageManifest)
aws ecr put-image --repository-name $repository --image-tag $readable_tag --image-manifest "$manifest"

Loading…
Cancel
Save