@@ -116,7 +116,7 @@ jobs:
116116
117117 - name : Make sure dockerd is running and test Docker
118118 run : |
119- docker run --rm hello-world
119+ docker ps
120120
121121 - name : Install Kayobe
122122 run : |
@@ -127,10 +127,11 @@ jobs:
127127 pip install -U pip &&
128128 pip install ../src/kayobe
129129
130- # Required for Docker registry login. Normally installed during host configure.
130+ # Required for Pulp auth proxy deployment and Docker registry login.
131+ # Normally installed during host configure.
131132 - name : Install Docker Python SDK
132133 run : |
133- pip install --user docker
134+ sudo pip install docker
134135
135136 - name : Configure localhost as a seed
136137 run : |
@@ -141,11 +142,23 @@ jobs:
141142 localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3
142143 EOF
143144
145+ # See etc/kayobe/ansible/roles/pulp_auth_proxy/README.md for details.
146+ # NOTE: We override pulp_auth_proxy_conf_path to a path shared by the
147+ # runner and dind containers.
148+ - name : Deploy an authenticating package repository mirror proxy
149+ run : |
150+ source venvs/kayobe/bin/activate &&
151+ source src/kayobe-config/kayobe-env --environment ci-builder &&
152+ kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/pulp-auth-proxy.yml -e pulp_auth_proxy_conf_path=/home/runner/_work/pulp_proxy
153+ env :
154+ KAYOBE_VAULT_PASSWORD : ${{ secrets.KAYOBE_VAULT_PASSWORD }}
155+
144156 - name : Build and push kolla overcloud images
145157 run : |
146158 args="${{ github.event.inputs.regexes }}"
147159 args="$args -e kolla_base_distro=${{ matrix.distro }}"
148160 args="$args -e kolla_tag=$KOLLA_TAG"
161+ args="$args -e stackhpc_repo_mirror_auth_proxy_enabled=true"
149162 if ${{ inputs.push }} == 'true'; then
150163 args="$args --push"
151164 fi
@@ -161,6 +174,7 @@ jobs:
161174 run : |
162175 args="-e kolla_base_distro=${{ matrix.distro }}"
163176 args="$args -e kolla_tag=$KOLLA_TAG"
177+ args="$args -e stackhpc_repo_mirror_auth_proxy_enabled=true"
164178 if ${{ inputs.push }} == 'true'; then
165179 args="$args --push"
166180 fi
0 commit comments