Skip to content

Quay Management

Quay Management #1548

Workflow file for this run

name: Quay Management
on:
push:
paths:
- "ansible/**"
branches:
- "main"
pull_request:
branches:
- main
schedule:
- cron: "0 3 * * *"
# Declare default permissions as read only.
permissions: read-all
jobs:
quay-management:
name: "Quay Organization Management"
if: "github.repository == 'redhat-cop/org'"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Run ansible-lint
uses: ansible/ansible-lint@3b5bee19c2102ea35bc8619795a72c5c73797fc7 # v24.9.2
- name: Install Dependencies
run: ansible-galaxy install -r ansible/requirements.yml -p $HOME/roles
- name: Manage Quay Repository
if: github.event_name == 'push' || github.event_name == 'schedule'
env:
ANSIBLE_ROLES_PATH: '$HOME/roles/infra-ansible/roles/scm'
run: ansible-playbook -i ansible/inventory ansible/playbooks/quay_management.yml ${{secrets.ANSIBLE_EXTRA_VARS}}