Skip to content

Commit

Permalink
Merge pull request opendatahub-io#15 from Jooho/fix_gitaction
Browse files Browse the repository at this point in the history
Fix gitaction secrets
  • Loading branch information
Jooho authored Jul 13, 2023
2 parents f23bc24 + fa6d8b5 commit 1d07324
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr-close-image-delete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- closed

env:
QUAY_ODH_DASHBOARD_IMAGE_REPO: ${{ secrets.QUAY_ODH_CAIKIT_TGIS_SERVING_IMAGE_REPO }}
QUAY_ODH_CAIKIT_TGIS_SERVING_IMAGE_REPO: ${{ secrets.QUAY_ODH_CAIKIT_TGIS_SERVING_IMAGE_REPO }}

jobs:
delete-pr-quay-image:
Expand All @@ -26,10 +26,10 @@ jobs:
QUAY_TOKEN: ${{ secrets.QUAY_ROBOT_TOKEN }}
QUAY_ROBOT_USERNAME: ${{ secrets.QUAY_ROBOT_USERNAME }}
run: |
skopeo login quay.io -u ${QUAY_ROBOT_USERNAME} -p ${QUAY_TOKEN}
skopeo login quay.io -u "$QUAY_ROBOT_USERNAME" -p "$QUAY_TOKEN"
- name: Delete PR image
shell: bash
env:
PR: ${{ github.event.pull_request.number }}
run: |
skopeo delete docker://${QUAY_CAIKIT_TGIS_SERVING_IMAGE_REPO}:pr-${{ env.PR }}
skopeo delete docker://${QUAY_ODH_CAIKIT_TGIS_SERVING_IMAGE_REPO}:pr-${PR}

0 comments on commit 1d07324

Please sign in to comment.