Skip to content

Commit

Permalink
Try a new action
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin McFadden committed Aug 2, 2024
1 parent b58d138 commit 0055339
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,11 @@ jobs:
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
# Push the Docker image to the ECR repository
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
- name: Delete old ECR images
uses: agungwa/ECR-Lifecycle-Manager@v1.1.1
with:
repo_name: ${{ steps.login-ecr.outputs.registry }}/elevator-registry
num_to_keep: 1
dry_run: false
delete_untagged_images: true

0 comments on commit 0055339

Please sign in to comment.