Skip to content

Commit

Permalink
Streamline tag delete (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanhmorris authored Feb 7, 2025
1 parent 58bb75f commit 318a2d4
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/delete-container-tag.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: Delete tag from container registry
name: Delete branch tag from container registry

on:
delete:

env:
REGISTRY: cfaprdbatchcr.azurecr.io
REGISTRY: ${{ vars.CONTAINER_REGISTRY }}
IMAGE_NAME: pyrenew-hew

jobs:
delete-container:
if: github.event.ref_type == 'branch'
runs-on: cfa-cdcgov
name: Deleting the container
name: Delete tag

steps:
- name : Checkout code
Expand All @@ -27,20 +27,10 @@ jobs:
echo "tag=${{ github.event.ref }}" >> $GITHUB_OUTPUT
fi
- name: Login to the Container Registry
uses: docker/login-action@v3
with:
registry: "cfaprdbatchcr.azurecr.io"
username: "cfaprdbatchcr"
password: ${{ secrets.CFAPRDBATCHCR_REGISTRY_PASSWORD }}

- name: Login to Azure with NNH Service Principal
- name: Login to Azure
id: azure_login_2
uses: azure/login@v2
with:
# managed by EDAV. Contact Amit Mantri or Jon Kislin if you
# have issues. Also, this is documented in the Predict
# handbook.
creds: ${{ secrets.EDAV_STF_SERVICE_PRINCIPAL }}

- name: Deleting the image
Expand Down

0 comments on commit 318a2d4

Please sign in to comment.