Skip to content

Add Accelerator section in Admin Panel and feature flag #452

Add Accelerator section in Admin Panel and feature flag

Add Accelerator section in Admin Panel and feature flag #452

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 }}