Fixes
This commit is contained in:
1 parent
b95a8f1b8e
commit
7a8aed53ab
1 file changed
+14
-4
@@ -62,6 +62,7 @@ jobs:
|
||||
password: ${{ secrets.GITEAPASSWD }}
|
||||
- id: build
|
||||
uses: docker/build-push-action@v6
|
||||
continue-on-error: true
|
||||
with:
|
||||
context: apache
|
||||
platforms: linux/arm64
|
||||
@@ -69,6 +70,7 @@ jobs:
|
||||
|
||||
manifest-apache:
|
||||
needs: [build-apache-amd64, build-apache-arm64]
|
||||
if: ${{ always() && needs.build-apache-amd64.result == 'success' }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -86,10 +88,18 @@ jobs:
|
||||
username: ${{ secrets.GITEAUSER }}
|
||||
password: ${{ secrets.GITEAPASSWD }}
|
||||
- name: Create and push multi-arch manifest
|
||||
env:
|
||||
AMD64_DIGEST: ${{ needs.build-apache-amd64.outputs.digest }}
|
||||
ARM64_DIGEST: ${{ needs.build-apache-arm64.outputs.digest }}
|
||||
run: |
|
||||
docker buildx imagetools create -t git.steelants.cz/steelants/docker_php_base:latest \
|
||||
git.steelants.cz/steelants/docker_php_base@${{ needs.build-apache-amd64.outputs.digest }} \
|
||||
git.steelants.cz/steelants/docker_php_base@${{ needs.build-apache-arm64.outputs.digest }}
|
||||
IMAGE=git.steelants.cz/steelants/docker_php_base
|
||||
SOURCES="$IMAGE@$AMD64_DIGEST"
|
||||
if [ -n "$ARM64_DIGEST" ]; then
|
||||
SOURCES="$SOURCES $IMAGE@$ARM64_DIGEST"
|
||||
else
|
||||
echo "::warning::arm64 build failed - publishing amd64 only"
|
||||
fi
|
||||
docker buildx imagetools create -t $IMAGE:latest $SOURCES
|
||||
|
||||
- name: Discord Webhook Success
|
||||
if: success()
|
||||
@@ -97,7 +107,7 @@ jobs:
|
||||
with:
|
||||
webhook-url: ${{ secrets.WEBHOOK_URL }}
|
||||
content: |
|
||||
✅ APACHE - Build successful! (amd64 + arm64)
|
||||
✅ APACHE - Build successful! (amd64${{ needs.build-apache-arm64.outputs.digest != '' && ' + arm64' || ' only, arm64 FAILED' }})
|
||||
Repo: ${{ github.repository }}
|
||||
Branch: ${{ github.ref_name }}
|
||||
Commit: ${{ github.sha }}
|
||||
|
||||
Reference in new issue
Block a user