Skip to content

Commit

Permalink
Change manifest create style
Browse files Browse the repository at this point in the history
  • Loading branch information
alnoki committed Nov 17, 2024
1 parent 1c472d1 commit 4484653
Showing 1 changed file with 18 additions and 28 deletions.
46 changes: 18 additions & 28 deletions .github/workflows/push-processor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,6 @@ jobs:
with:
password: '${{ secrets.DOCKERHUB_TOKEN }}'
username: '${{ secrets.DOCKERHUB_USERNAME }}'
# - name: 'Debug'
# run: |
# docker system prune -af
# echo "=== Before loading tarballs ==="
# docker images
# echo "\n=== Loading AMD64 tarball ==="
# docker load --input /tmp/amd64.tar
# echo "\n=== After AMD64 load ==="
# docker images
# echo "\n=== Loading ARM64 tarball ==="
# docker load --input /tmp/arm64.tar
# echo "\n=== After ARM64 load ==="
# docker images
# echo "\n=== Metadata tags from previous step ==="
# echo "${{ steps.metadata.outputs.tags }}"
- name: 'Push multi-platform image to Docker Hub'
run: |
docker system prune -af
Expand All @@ -81,23 +66,28 @@ jobs:
docker images
echo "${{ secrets.DOCKERHUB_TOKEN }}" | \
docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin

Check failure on line 69 in .github/workflows/push-processor.yaml

View workflow job for this annotation

GitHub Actions / pre-commit

69:11 [indentation] wrong indentation: expected 8but found 10
echo "${{ steps.metadata.outputs.tags }}" | while read -r tag; do
if [ ! -z "$tag" ]; then
echo "=== Creating multi-arch image for $tag ==="
echo "Source images:"
docker inspect temp-amd64:latest
docker inspect temp-arm64:latest
if [ ! -z "$tag" ]; then

Check failure on line 72 in .github/workflows/push-processor.yaml

View workflow job for this annotation

GitHub Actions / pre-commit

72:11 [indentation] wrong indentation: expected 8but found 10
echo "=== Creating multi-arch image for $tag ==="

Check failure on line 73 in .github/workflows/push-processor.yaml

View workflow job for this annotation

GitHub Actions / pre-commit

73:13 [indentation] wrong indentation: expected 8but found 12
echo "Source images:"

Check failure on line 75 in .github/workflows/push-processor.yaml

View workflow job for this annotation

GitHub Actions / pre-commit

75:13 [indentation] wrong indentation: expected 8but found 12
docker inspect temp-amd64:latest

Check failure on line 76 in .github/workflows/push-processor.yaml

View workflow job for this annotation

GitHub Actions / pre-commit

76:13 [indentation] wrong indentation: expected 8but found 12
docker inspect temp-arm64:latest

Check failure on line 77 in .github/workflows/push-processor.yaml

View workflow job for this annotation

GitHub Actions / pre-commit

77:13 [indentation] wrong indentation: expected 8but found 12
echo "=== Running buildx imagetools create with debug ==="
docker buildx imagetools create -t $tag \
--append temp-amd64:latest \
--append temp-arm64:latest --debug
echo "=== Running buildx imagetools create ==="

Check failure on line 79 in .github/workflows/push-processor.yaml

View workflow job for this annotation

GitHub Actions / pre-commit

79:13 [indentation] wrong indentation: expected 8but found 12
docker buildx imagetools create \

Check failure on line 80 in .github/workflows/push-processor.yaml

View workflow job for this annotation

GitHub Actions / pre-commit

80:13 [indentation] wrong indentation: expected 8but found 12
--debug \

Check failure on line 81 in .github/workflows/push-processor.yaml

View workflow job for this annotation

GitHub Actions / pre-commit

81:15 [indentation] wrong indentation: expected 8but found 14
--progress=plain \

Check failure on line 82 in .github/workflows/push-processor.yaml

View workflow job for this annotation

GitHub Actions / pre-commit

82:15 [indentation] wrong indentation: expected 8but found 14
-t "$tag" \
--platform linux/amd64,linux/arm64 \
temp-amd64:latest \
temp-arm64:latest
echo "=== Attempting to inspect created image ==="
docker buildx imagetools inspect $tag
fi
echo "=== Attempting to inspect created image ==="
docker buildx imagetools inspect "$tag"
fi
done
timeout-minutes: 360
name: 'Push multi-platform processor image to Docker Hub'
Expand Down

0 comments on commit 4484653

Please sign in to comment.