File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 17
17
required : false
18
18
description : Branch of StackHPC Kayobe configuration to use
19
19
default : stackhpc/yoga
20
+ check-mode :
21
+ description : Check mode
22
+ type : boolean
23
+ required : false
24
+ default : false
20
25
21
26
env :
22
27
ANSIBLE_FORCE_COLOR : True
@@ -53,13 +58,19 @@ jobs:
53
58
54
59
- name : Promote images from stackhpc-dev to stackhpc namespace in Ark
55
60
run : |
61
+ args=""
62
+ if [[ $CHECK_MODE = true ]]; then
63
+ args="$args --check --diff"
64
+ fi
56
65
source venv/bin/activate &&
57
66
ansible-playbook -i ansible/inventory \
58
67
ansible/dev-pulp-container-tag-query-kayobe.yml \
59
68
ansible/dev-pulp-container-promote.yml \
60
69
-e kolla_container_image_filter="'$FILTER'" \
61
70
-e kolla_base_distros_override="'$DISTROS'" \
62
- -e kayobe_config_repo_path=./stackhpc-kayobe-config/
71
+ -e kayobe_config_repo_path=./stackhpc-kayobe-config/ \
72
+ $args
63
73
env :
64
74
FILTER : ${{ github.event.inputs.filter }}
65
75
DISTROS : ${{ github.event.inputs.distros }}
76
+ CHECK_MODE : ${{ inputs.check-mode }}
Original file line number Diff line number Diff line change 12
12
required : false
13
13
description : Branch of StackHPC Kayobe configuration to use
14
14
default : stackhpc/wallaby
15
+ check-mode :
16
+ description : Check mode
17
+ type : boolean
18
+ required : false
19
+ default : false
15
20
16
21
env :
17
22
ANSIBLE_FORCE_COLOR : True
@@ -48,12 +53,18 @@ jobs:
48
53
49
54
- name : Promote package repositories in Ark to release
50
55
run : |
56
+ args=""
57
+ if [[ $CHECK_MODE = true ]]; then
58
+ args="$args --check --diff"
59
+ fi
51
60
source venv/bin/activate &&
52
61
ansible-playbook -i ansible/inventory \
53
62
ansible/dev-pulp-repo-version-query-kayobe.yml \
54
63
ansible/dev-pulp-repo-promote.yml \
55
64
-e deb_package_repo_filter="'$FILTER'" \
56
65
-e rpm_package_repo_filter="'$FILTER'" \
57
- -e kayobe_config_repo_path=./stackhpc-kayobe-config/
66
+ -e kayobe_config_repo_path=./stackhpc-kayobe-config/ \
67
+ $args
58
68
env :
59
69
FILTER : ${{ github.event.inputs.filter }}
70
+ CHECK_MODE : ${{ inputs.check-mode }}
You can’t perform that action at this time.
0 commit comments