-
Notifications
You must be signed in to change notification settings - Fork 2
82 lines (77 loc) · 2.96 KB
/
container-sync.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
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: [self-hosted, stackhpc-release-train]
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 }}