93
93
94
94
# Push images to image repository
95
95
if [ -f bake-target-tags ]; then
96
- echo "bake-target-tags: " $(< bake-target-tags)
97
- IMAGE_NAME=$(cat bake-target-tags | cut -d ":" -f 1)
98
- TAG_NAME=$(cat bake-target-tags | cut -d ":" -f 2)
96
+ echo "bake-target-tags: $(< bake-target-tags)"
97
+ IMAGE_NAME=$(cut -d ":" -f 1 < bake-target-tags )
98
+ TAG_NAME=$(cut -d ":" -f 2 < bake-target-tags )
99
99
echo "image: $IMAGE_NAME"
100
100
echo "tag: $TAG_NAME"
101
101
# Store the output of `docker image push` into a variable, so we can parse it for the digest
@@ -172,7 +172,7 @@ jobs:
172
172
DOCKER_USER : github
173
173
DOCKER_PASSWORD : ${{ secrets.NEXUS_PASSWORD }}
174
174
run : |
175
- for product_and_version in $(python3 enumerate-product-versions.py); do
175
+ for product_and_version in $(python3 .scripts/ enumerate-product-versions.py); do
176
176
PRODUCT="$(echo "$product_and_version" | cut -d '#' -f 1)"
177
177
VERSION="$(echo "$product_and_version" | cut -d '#' -f 2)"
178
178
@@ -185,7 +185,7 @@ jobs:
185
185
# Further reading: https://docs.docker.com/reference/cli/docker/manifest/push/
186
186
# --amend because the manifest list would be updated since we use the same tag
187
187
docker manifest create "$MANIFEST_NAME" --amend "${MANIFEST_NAME}-amd64" --amend "${MANIFEST_NAME}-arm64"
188
- DIGEST=$(docker manifest push $MANIFEST_NAME)
188
+ DIGEST=$(docker manifest push " $MANIFEST_NAME" )
189
189
190
190
# Refer to image via its digest (oci.stackable.tech/sdp/airflow@sha256:0a1b2c...)
191
191
# This generates a signature and publishes it to the registry, next to the image
@@ -195,6 +195,6 @@ jobs:
195
195
# Push to oci.stackable.tech as well
196
196
MANIFEST_NAME="oci.stackable.tech/sdp/${PRODUCT}:${VERSION}-stackable${GITHUB_REF_NAME}"
197
197
docker manifest create "$MANIFEST_NAME" --amend "${MANIFEST_NAME}-amd64" --amend "${MANIFEST_NAME}-arm64"
198
- DIGEST=$(docker manifest push $MANIFEST_NAME)
198
+ DIGEST=$(docker manifest push " $MANIFEST_NAME" )
199
199
cosign sign -y "$MANIFEST_NAME@$DIGEST"
200
200
done
0 commit comments