43
43
runs-on : [self-hosted, stackhpc-kayobe-config-kolla-builder]
44
44
permissions : {}
45
45
outputs :
46
- kolla_tag : ${{ steps.kolla_tag .outputs.kolla_tag }}
46
+ datetime_tag : ${{ steps.datetime_tag .outputs.datetime_tag }}
47
47
matrix : ${{ steps.set-matrix.outputs.matrix }}
48
48
openstack_release : ${{ steps.openstack_release.outputs.openstack_release }}
49
49
steps :
@@ -58,10 +58,10 @@ jobs:
58
58
59
59
# Generate a tag to apply to all built container images.
60
60
# Without this, each kayobe * container image build command would use a different tag.
61
- - name : Generate container image tag
62
- id : kolla_tag
61
+ - name : Generate container datetime tag
62
+ id : datetime_tag
63
63
run : |
64
- echo "kolla_tag =$(date +${{ steps.openstack_release.outputs.openstack_release }}- %Y%m%dT%H%M%S)" >> $GITHUB_OUTPUT
64
+ echo "datetime_tag =$(date +%Y%m%dT%H%M%S)" >> $GITHUB_OUTPUT
65
65
66
66
# Dynamically define job matrix.
67
67
# We need a separate matrix entry for each distribution, when the relevant input is true.
81
81
fi
82
82
echo "]}" >> $GITHUB_OUTPUT
83
83
84
- - name : Display container image tag
84
+ - name : Display container datetime tag
85
85
run : |
86
- echo "${{ steps.kolla_tag .outputs.kolla_tag }}"
86
+ echo "${{ steps.datetime_tag .outputs.datetime_tag }}"
87
87
88
88
container-image-build :
89
89
name : Build Kolla container images
@@ -162,7 +162,7 @@ jobs:
162
162
run : |
163
163
args="${{ github.event.inputs.regexes }}"
164
164
args="$args -e kolla_base_distro=${{ matrix.distro }}"
165
- args="$args -e kolla_tag=${{ needs.generate-tag.outputs.kolla_tag }} "
165
+ args="$args -e kolla_tag=$KOLLA_TAG "
166
166
if ${{ inputs.push }} == 'true'; then
167
167
args="$args --push"
168
168
fi
@@ -171,12 +171,13 @@ jobs:
171
171
kayobe overcloud container image build $args
172
172
env :
173
173
KAYOBE_VAULT_PASSWORD : ${{ secrets.KAYOBE_VAULT_PASSWORD }}
174
+ KOLLA_TAG : " ${{ needs.generate-tag.outputs.openstack_release }}-${{ matrix.distro }}-${{ matrix.distro == 'rocky' && '9' || 'jammy' }}-${{ needs.generate-tag.outputs.datetime_tag }}"
174
175
if : github.event.inputs.overcloud == 'true'
175
176
176
177
- name : Build and push kolla seed images
177
178
run : |
178
179
args="kolla_base_distro=${{ matrix.distro }}"
179
- args="$args -e kolla_tag=${{ needs.generate-tag.outputs.kolla_tag }} "
180
+ args="$args -e kolla_tag=$KOLLA_TAG "
180
181
if ${{ inputs.push }} == 'true'; then
181
182
args="$args --push"
182
183
fi
@@ -185,11 +186,12 @@ jobs:
185
186
kayobe seed container image build $args
186
187
env :
187
188
KAYOBE_VAULT_PASSWORD : ${{ secrets.KAYOBE_VAULT_PASSWORD }}
189
+ KOLLA_TAG : " ${{ needs.generate-tag.outputs.openstack_release }}-${{ matrix.distro }}-${{ matrix.distro == 'rocky' && '9' || 'jammy' }}-${{ needs.generate-tag.outputs.datetime_tag }}"
188
190
if : github.event.inputs.seed == 'true'
189
191
190
192
- name : Get built container images
191
193
run : |
192
- sudo docker image ls --filter "reference=ark.stackhpc.com/stackhpc-dev/${{ matrix.distro }}-*: ${{ needs.generate-tag.outputs.kolla_tag }}" > ${{ matrix.distro }}-container-images
194
+ sudo docker image ls --filter "reference=ark.stackhpc.com/stackhpc-dev/*:* ${{ matrix.distro }}* ${{ needs.generate-tag.outputs.datetime_tag }}" > ${{ matrix.distro }}-container-images
193
195
194
196
- name : Upload container images artifact
195
197
uses : actions/upload-artifact@v3
0 commit comments