@@ -116,7 +116,7 @@ jobs:
116
116
117
117
- name : Make sure dockerd is running and test Docker
118
118
run : |
119
- docker run --rm hello-world
119
+ docker ps
120
120
121
121
- name : Install Kayobe
122
122
run : |
@@ -127,25 +127,37 @@ jobs:
127
127
pip install -U pip &&
128
128
pip install ../src/kayobe
129
129
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.
131
132
- name : Install Docker Python SDK
132
133
run : |
133
- pip install --user docker
134
+ sudo pip install docker
134
135
135
136
- name : Configure localhost as a seed
136
137
run : |
137
- cat > src/kayobe-config/etc/kayobe/environments/ci-builder/inventory/hosts << EOF
138
138
# A 'seed' host used for building images.
139
139
# Use localhost for container image builds.
140
140
[seed]
141
141
localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3
142
142
EOF
143
143
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
+
144
155
- name : Build and push kolla overcloud images
145
156
run : |
146
157
args="${{ github.event.inputs.regexes }}"
147
158
args="$args -e kolla_base_distro=${{ matrix.distro }}"
148
159
args="$args -e kolla_tag=$KOLLA_TAG"
160
+ args="$args -e stackhpc_repo_mirror_auth_proxy_enabled=true"
149
161
if ${{ inputs.push }} == 'true'; then
150
162
args="$args --push"
151
163
fi
@@ -161,6 +173,7 @@ jobs:
161
173
run : |
162
174
args="-e kolla_base_distro=${{ matrix.distro }}"
163
175
args="$args -e kolla_tag=$KOLLA_TAG"
176
+ args="$args -e stackhpc_repo_mirror_auth_proxy_enabled=true"
164
177
if ${{ inputs.push }} == 'true'; then
165
178
args="$args --push"
166
179
fi
0 commit comments