Skip to content

Update global pipelines page and link it to the global pipeline runs page #1784

Update global pipelines page and link it to the global pipeline runs page

Update global pipelines page and link it to the global pipeline runs page #1784

name: Delete quay image on PR closed
on:
pull_request:
types:
- closed
env:
QUAY_ODH_DASHBOARD_IMAGE_REPO: ${{ secrets.QUAY_ODH_DASHBOARD_IMAGE_REPO }}
jobs:
delete-pr-quay-image:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Install skopeo
shell: bash
run: |
sudo apt-get -y update
sudo apt-get -y install skopeo
- name: Login to quay.io
shell: bash
env:
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}
- name: Delete PR image
shell: bash
env:
PR: ${{ github.event.pull_request.number }}
run: |
skopeo delete docker://${QUAY_ODH_DASHBOARD_IMAGE_REPO}:pr-${{ env.PR }}