Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 20 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ jobs:
with:
ref: ${{ matrix.build.tag }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4

- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin

Expand Down Expand Up @@ -121,8 +124,9 @@ jobs:
TAGS="$TAGS --tag $GHCR_TAG_MAJOR"
fi

docker build --output "type=image,push=$PUSH" \
docker buildx build --output "type=image,push=$PUSH" \
--provenance=false \
--sbom=true \
Comment thread
bluvulture marked this conversation as resolved.
Comment thread
bluvulture marked this conversation as resolved.
--platform "linux/${ARCH_TAG}" \
--target="pimcore_php_$imageVariant" \
--build-arg PHP_VERSION="${PHP_VERSION}" \
Expand Down Expand Up @@ -160,6 +164,9 @@ jobs:
if: github.event_name != 'workflow_dispatch' || inputs.publish
steps:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4

- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin

Expand All @@ -170,7 +177,7 @@ jobs:
uses: actions/download-artifact@v8
with:
path: artifacts

- name: Process tags
run: |
find artifacts -type f -name "aggregated_tags.txt" -exec cat {} + > all_aggregated_tags.txt
Expand All @@ -185,12 +192,16 @@ jobs:
for tag in "${!UNIQUE_TAGS[@]}"; do

echo "Processing tag: $tag"

docker manifest create "$tag" \
--amend "${tag}-amd64" \
--amend "${tag}-arm64"

docker manifest push "$tag"
# Verify both per-arch images exist in the registry before merging
if docker buildx imagetools inspect "${tag}-amd64" > /dev/null 2>&1 \
&& docker buildx imagetools inspect "${tag}-arm64" > /dev/null 2>&1; then
docker buildx imagetools create \
--tag "$tag" \
"${tag}-amd64" \
"${tag}-arm64"
else
echo "Error: Missing per-arch image for $tag, skipping"
fi
Comment thread
bluvulture marked this conversation as resolved.

done

done
Loading