Skip to content

Commit 9afdf57

Browse files
committed
Use env hooks to setup Pulp proxy in CI
Use the authenticating pulp_proxy for all CI build jobs that need packages from Ark - host images, Kolla images and the IPA image.
1 parent bdcd8a5 commit 9afdf57

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed

.github/workflows/stackhpc-container-image-build.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,6 @@ jobs:
171171
localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3
172172
EOF
173173
174-
# See etc/kayobe/ansible/roles/pulp_auth_proxy/README.md for details.
175-
# NOTE: We override pulp_auth_proxy_conf_path to a path shared by the
176-
# runner and dind containers.
177-
- name: Deploy an authenticating package repository mirror proxy
178-
run: |
179-
source venvs/kayobe/bin/activate &&
180-
source src/kayobe-config/kayobe-env --environment ci-builder &&
181-
kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/pulp-auth-proxy.yml -e pulp_auth_proxy_conf_path=/home/runner/_work/pulp_proxy
182-
env:
183-
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
184-
185174
- name: Create build logs output directory
186175
run: mkdir image-build-logs
187176

@@ -192,7 +181,9 @@ jobs:
192181
args="${{ inputs.regexes }}"
193182
args="$args -e kolla_base_distro=${{ matrix.distro }}"
194183
args="$args -e kolla_tag=${{ steps.write-kolla-tag.outputs.kolla-tag }}"
195-
args="$args -e stackhpc_repo_mirror_auth_proxy_enabled=true"
184+
# NOTE: We override pulp_auth_proxy_conf_path to a path shared by the
185+
# runner and dind containers.
186+
args="$args -e pulp_auth_proxy_conf_path=/home/runner/_work/pulp_proxy"
196187
source venvs/kayobe/bin/activate &&
197188
source src/kayobe-config/kayobe-env --environment ci-builder &&
198189
kayobe overcloud container image build $args
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../ansible/pulp-auth-proxy.yml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../ansible/pulp-auth-proxy.yml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../ansible/pulp-auth-proxy.yml

etc/kayobe/environments/ci-builder/stackhpc-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ kolla_build_neutron_ovs: true
3636
# Host and port of a package repository mirror.
3737
# Build against the development Pulp service repositories.
3838
# Use Ark's package repositories to install packages.
39+
stackhpc_repo_mirror_auth_proxy_enabled: true
3940
stackhpc_repo_mirror_url: "{{ stackhpc_repo_mirror_auth_proxy_url if stackhpc_repo_mirror_auth_proxy_enabled | bool else stackhpc_release_pulp_url }}"
4041
stackhpc_repo_mirror_username: "skc-ci-aio"
4142
stackhpc_repo_mirror_password: !vault |

0 commit comments

Comments
 (0)