-
Notifications
You must be signed in to change notification settings - Fork 47
36 lines (31 loc) · 1.03 KB
/
quay-mgmt.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run ansible-lint
uses: ansible/ansible-lint@4ce8e497d462cf73b4d4fac1e97b4ace4f317dcc # v24.12.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}}