@@ -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,25 +127,37 @@ 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 : |
137- cat > src/kayobe-config/etc/kayobe/environments/ci-builder/inventory/hosts << EOF
138138 # A 'seed' host used for building images.
139139 # Use localhost for container image builds.
140140 [seed]
141141 localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3
142142 EOF
143143
144+ # See etc/kayobe/ansible/roles/pulp_auth_proxy/README.md for details.
145+ # NOTE: We override pulp_auth_proxy_conf_path to a path shared by the
146+ # runner and dind containers.
147+ - name : Deploy an authenticating package repository mirror proxy
148+ run : |
149+ source venvs/kayobe/bin/activate &&
150+ source src/kayobe-config/kayobe-env --environment ci-builder &&
151+ kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/pulp-auth-proxy.yml -e pulp_auth_proxy_conf_path=/home/runner/_work/pulp_proxy
152+ env :
153+ KAYOBE_VAULT_PASSWORD : ${{ secrets.KAYOBE_VAULT_PASSWORD }}
154+
144155 - name : Build and push kolla overcloud images
145156 run : |
146157 args="${{ github.event.inputs.regexes }}"
147158 args="$args -e kolla_base_distro=${{ matrix.distro }}"
148159 args="$args -e kolla_tag=$KOLLA_TAG"
160+ args="$args -e stackhpc_repo_mirror_auth_proxy_enabled=true"
149161 if ${{ inputs.push }} == 'true'; then
150162 args="$args --push"
151163 fi
@@ -161,6 +173,7 @@ jobs:
161173 run : |
162174 args="-e kolla_base_distro=${{ matrix.distro }}"
163175 args="$args -e kolla_tag=$KOLLA_TAG"
176+ args="$args -e stackhpc_repo_mirror_auth_proxy_enabled=true"
164177 if ${{ inputs.push }} == 'true'; then
165178 args="$args --push"
166179 fi
0 commit comments