Skip to content

Commit

Permalink
fixup! feat(action): implement rollback mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
IamAbbey committed Feb 27, 2024
1 parent 44c4707 commit da998bf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions custom-deploy-steps/create-task-definition/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ runs:
- name: Replace PLACEHOLDER in task definition with image URI
shell: bash
run: |
jq --arg image_uri "${{ inputs.image_uri }}" '.containerDefinitions[].image |= $image_uri \
| del(.taskDefinitionArn) | del(.revision) | del(.status) | del(.requiresAttributes) | del(.compatibilities) \
| del(.registeredAt) | del(.registeredBy)' \
jq --arg image_uri "${{ inputs.image_uri }}" \
'.containerDefinitions[].image |= $image_uri | del(.taskDefinitionArn) | del(.revision) | del(.status) | del(.requiresAttributes) | del(.compatibilities) | del(.registeredAt) | del(.registeredBy)' \
task-definition.json > tmpfile && mv tmpfile task-definition.json
- name: Get latest active task definition created by GitHub Actions deployment
Expand Down

0 comments on commit da998bf

Please sign in to comment.