Sync container repositories #353
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Sync container repositories | |
on: | |
workflow_dispatch: | |
inputs: | |
filter: | |
description: Space-separated list of regular expressions matching images to sync | |
type: string | |
required: false | |
default: "" | |
distros: | |
description: Space-separated list of base distributions to sync for | |
type: string | |
required: false | |
default: "" | |
sync-old-images: | |
description: Whether to sync images for Yoga and older | |
type: boolean | |
default: true | |
sync-new-images: | |
description: Whether to sync images for Zed and newer | |
type: boolean | |
default: true | |
env: | |
ANSIBLE_FORCE_COLOR: True | |
ANSIBLE_VAULT_PASSWORD_FILE: ${{ github.workspace }}/vault-pass | |
jobs: | |
container-sync: | |
name: Sync container repositories | |
runs-on: arc-release-train-runner | |
timeout-minutes: 720 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Release Train & dependencies | |
uses: ./.github/actions/setup | |
with: | |
vault-password: ${{ secrets.ANSIBLE_VAULT_PASSWORD }} | |
vault-password-file: ${{ env.ANSIBLE_VAULT_PASSWORD_FILE }} | |
- name: Configure access control for stackhpc-dev namespace in Ark | |
run: | | |
ansible-playbook -i ansible/inventory \ | |
ansible/dev-pulp-container-publish.yml \ | |
-e kolla_container_image_filter="'$FILTER'" \ | |
-e kolla_base_distros_override="'$DISTROS'" \ | |
-e sync_old_images="'$SYNC_OLD_IMAGES'" \ | |
-e sync_new_images="'$SYNC_NEW_IMAGES'" | |
env: | |
FILTER: ${{ github.event.inputs.filter }} | |
DISTROS: ${{ github.event.inputs.distros }} | |
SYNC_OLD_IMAGES: ${{ github.event.inputs.sync-old-images }} | |
SYNC_NEW_IMAGES: ${{ github.event.inputs.sync-new-images }} | |
- name: Sync images in test with stackhpc-dev namespace in Ark | |
run: | | |
ansible-playbook -i ansible/inventory \ | |
ansible/test-pulp-container-sync.yml \ | |
-e kolla_container_image_filter="'$FILTER'" \ | |
-e kolla_base_distros_override="'$DISTROS'" \ | |
-e sync_old_images="'$SYNC_OLD_IMAGES'" \ | |
-e sync_new_images="'$SYNC_NEW_IMAGES'" | |
env: | |
FILTER: ${{ github.event.inputs.filter }} | |
DISTROS: ${{ github.event.inputs.distros }} | |
SYNC_OLD_IMAGES: ${{ github.event.inputs.sync-old-images }} | |
SYNC_NEW_IMAGES: ${{ github.event.inputs.sync-new-images }} | |
- name: Publish images in test | |
run: | | |
ansible-playbook -i ansible/inventory \ | |
ansible/test-pulp-container-publish.yml \ | |
-e kolla_container_image_filter="'$FILTER'" \ | |
-e kolla_base_distros_override="'$DISTROS'" \ | |
-e sync_old_images="'$SYNC_OLD_IMAGES'" \ | |
-e sync_new_images="'$SYNC_NEW_IMAGES'" | |
env: | |
FILTER: ${{ github.event.inputs.filter }} | |
DISTROS: ${{ github.event.inputs.distros }} | |
SYNC_OLD_IMAGES: ${{ github.event.inputs.sync-old-images }} | |
SYNC_NEW_IMAGES: ${{ github.event.inputs.sync-new-images }} |