Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: dwertent <[email protected]>
  • Loading branch information
dwertent committed Nov 9, 2024
1 parent 5a83cae commit 605d71c
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions .github/workflows/cross-build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,21 +107,15 @@ jobs:
password: ${{ secrets.password }}

- name: Create and push core manifest
run: |
docker manifest create $TEMP_IMAGE \
--amend $TEMP_IMAGE-arm64 \
--amend $TEMP_IMAGE-amd64
docker manifest push $TEMP_IMAGE
- name: Retag and push core image
env:
IMAGE_TAGS: ${{ inputs.image_tags }}
run: |
docker pull $TEMP_IMAGE
IFS=',' read -ra TAG_ARRAY <<< "$IMAGE_TAGS"
for tag in "${TAG_ARRAY[@]}"; do
docker tag $TEMP_IMAGE $IMAGE:$tag
docker push $IMAGE:$tag
docker manifest create $IMAGE:$tag \
--amend $TEMP_IMAGE-arm64 \
--amend $TEMP_IMAGE-amd64
docker manifest push $IMAGE:$tag
done
operator-docker-manifest:
Expand Down Expand Up @@ -149,19 +143,14 @@ jobs:
password: ${{ secrets.password }}

- name: Create and push operator manifest
run: |
docker manifest create $TEMP_IMAGE \
--amend $TEMP_IMAGE-arm64 \
--amend $TEMP_IMAGE-amd64
docker manifest push $TEMP_IMAGE
- name: Retag and push operator image
env:
IMAGE_TAGS: ${{ inputs.image_tags }}
run: |
docker pull $TEMP_IMAGE
IFS=',' read -ra TAG_ARRAY <<< "$IMAGE_TAGS"
for tag in "${TAG_ARRAY[@]}"; do
docker tag $TEMP_IMAGE $IMAGE:$tag
docker push $IMAGE:$tag
docker manifest create $IMAGE:$tag \
--amend $TEMP_IMAGE-arm64 \
--amend $TEMP_IMAGE-amd64
docker manifest push $IMAGE:$tag
done

0 comments on commit 605d71c

Please sign in to comment.