@@ -125,7 +125,7 @@ jobs:
125
125
126
126
- name : Make sure dockerd is running and test Docker
127
127
run : |
128
- docker run --rm hello-world
128
+ docker ps
129
129
130
130
- name : Install Kayobe
131
131
run : |
@@ -136,10 +136,11 @@ jobs:
136
136
pip install -U pip &&
137
137
pip install ../src/kayobe
138
138
139
- # Required for Docker registry login. Normally installed during host configure.
139
+ # Required for Pulp auth proxy deployment and Docker registry login.
140
+ # Normally installed during host configure.
140
141
- name : Install Docker Python SDK
141
142
run : |
142
- pip install --user docker
143
+ sudo pip install docker
143
144
144
145
- name : Configure localhost as a seed
145
146
run : |
@@ -150,11 +151,23 @@ jobs:
150
151
localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3
151
152
EOF
152
153
154
+ # See etc/kayobe/ansible/roles/pulp_auth_proxy/README.md for details.
155
+ # NOTE: We override pulp_auth_proxy_conf_path to a path shared by the
156
+ # runner and dind containers.
157
+ - name : Deploy an authenticating package repository mirror proxy
158
+ run : |
159
+ source venvs/kayobe/bin/activate &&
160
+ source src/kayobe-config/kayobe-env --environment ci-builder &&
161
+ kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/pulp-auth-proxy.yml -e pulp_auth_proxy_conf_path=/home/runner/_work/pulp_proxy
162
+ env :
163
+ KAYOBE_VAULT_PASSWORD : ${{ secrets.KAYOBE_VAULT_PASSWORD }}
164
+
153
165
- name : Build and push kolla overcloud images
154
166
run : |
155
167
args="${{ github.event.inputs.regexes }}"
156
168
args="$args -e kolla_base_distro=${{ matrix.distro }}"
157
169
args="$args -e kolla_tag=${{ needs.generate-tag.outputs.kolla_tag }}"
170
+ args="$args -e stackhpc_repo_mirror_auth_proxy_enabled=true"
158
171
if ${{ inputs.push }} == 'true'; then
159
172
args="$args --push"
160
173
fi
@@ -169,6 +182,7 @@ jobs:
169
182
run : |
170
183
args="-e kolla_base_distro=${{ matrix.distro }}"
171
184
args="$args -e kolla_tag=${{ needs.generate-tag.outputs.kolla_tag }}"
185
+ args="$args -e stackhpc_repo_mirror_auth_proxy_enabled=true"
172
186
if ${{ inputs.push }} == 'true'; then
173
187
args="$args --push"
174
188
fi
0 commit comments