@@ -30,18 +30,20 @@ jobs:
3030 with :
3131 node-version : ${{ matrix.node-version }}
3232
33- # build, lint, test, test-run first, to fail early
3433 - run : npm ci
3534 - run : npm run lint
3635 - run : npm test
3736 - run : npm run start
3837
39- # - name: Set up QEMU
40- # uses: docker/setup-qemu-action@v2
38+ # ✅ Setup QEMU für ARM Builds
39+ - name : Set up QEMU
40+ uses : docker/setup-qemu-action@v3
4141
42- # - name: Set up Docker Buildx
43- # uses: docker/setup-buildx-action@v2
42+ # ✅ Setup Buildx für Multiarch
43+ - name : Set up Docker Buildx
44+ uses : docker/setup-buildx-action@v3
4445
46+ # ✅ Login zum GHCR
4547 - name : Log in to the Container registry
4648 uses : docker/login-action@v3
4749 with :
@@ -54,18 +56,19 @@ jobs:
5456 uses : jaywcjlove/github-action-package@main
5557
5658 - name : preparing variales to be lowercase
57- run : |
58- echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
59+ run : echo "IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
5960
60- - name : Build and push Docker image
61+ - name : 🏗️ Build and push Docker image (Multiarch)
6162 uses : docker/build-push-action@v5
6263 with :
6364 context : .
6465 push : true
65- tags : ' ${{ env.REGISTRY }}/${{ env.IMAGE_REPOSITORY }}:${{ env.BRANCH_NAME }},${{ env.REGISTRY }}/${{ env.IMAGE_REPOSITORY }}:${{ steps.meta.outputs.version }},${{ env.REGISTRY }}/${{ env.IMAGE_REPOSITORY }}:${{ env.COMMIT_SHA }},${{ env.REGISTRY }}/${{ env.IMAGE_REPOSITORY }}:latest'
66- # tags: ${{ steps.meta.outputs.tags }} #TAG from metadata-action
67- # labels: ${{ steps.meta.outputs.labels }} #TAG from metadata-action
68- # platforms: linux/amd64,linux/arm64
66+ platforms : linux/amd64,linux/arm64
67+ tags : |
68+ ${{ env.REGISTRY }}/${{ env.IMAGE_REPOSITORY }}:${{ env.BRANCH_NAME }}
69+ ${{ env.REGISTRY }}/${{ env.IMAGE_REPOSITORY }}:${{ steps.meta.outputs.version }}
70+ ${{ env.REGISTRY }}/${{ env.IMAGE_REPOSITORY }}:${{ env.COMMIT_SHA }}
71+ ${{ env.REGISTRY }}/${{ env.IMAGE_REPOSITORY }}:latest
6972
7073 # - name: Trigger Re-Deploy Stage
7174 # env:
0 commit comments