3 Commits

Author SHA1 Message Date
84aef6b860 fix(ci): use linux/arm64 platform to match infra
Some checks failed
Build & Deploy / 🔍 Prepare Environment (push) Successful in 4s
Build & Deploy / 🧪 QA (push) Failing after 6s
Build & Deploy / 🏗️ Build (push) Failing after 15s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🔔 Notifications (push) Successful in 2s
2026-02-05 10:57:04 +01:00
195932dde4 fix(ci): explicitly use shell: bash for all steps 2026-02-05 10:56:56 +01:00
977773fe94 fix(ci): add debug info and make maintenance optional 2026-02-05 10:56:42 +01:00

View File

@@ -28,10 +28,19 @@ jobs:
directus_host: ${{ steps.determine.outputs.directus_host }}
project_name: ${{ steps.determine.outputs.project_name }}
steps:
- name: 🧹 Maintenance (Runner Cleanup)
- name: 🔍 Debug Info
shell: bash
run: |
docker image prune -f
docker builder prune -f --filter "until=24h"
echo "ref_name: ${{ github.ref_name }}"
echo "ref_type: ${{ github.ref_type }}"
echo "tag: ${{ github.ref_name }}"
- name: 🧹 Maintenance (Runner Cleanup)
continue-on-error: true
shell: bash
run: |
docker image prune -f || true
docker builder prune -f --filter "until=24h" || true
- name: Checkout repository
uses: actions/checkout@v4
@@ -40,6 +49,7 @@ jobs:
- name: 🔍 Determine Environment
id: determine
shell: bash
run: |
TAG="${{ github.ref_name }}"
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7)
@@ -66,6 +76,7 @@ jobs:
TARGET="skip"
fi
echo "Target determined: $TARGET"
echo "target=$TARGET" >> "$GITHUB_OUTPUT"
echo "image_tag=$IMAGE_TAG" >> "$GITHUB_OUTPUT"
echo "env_file=$ENV_FILE" >> "$GITHUB_OUTPUT"
@@ -117,10 +128,11 @@ jobs:
run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login registry.infra.mintel.me -u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin
- name: 🏗️ Build and Push
shell: bash
run: |
docker buildx build \
--pull \
--platform linux/amd64,linux/arm64 \
--platform linux/arm64 \
--build-arg NPM_TOKEN=${{ secrets.NPM_TOKEN }} \
--build-arg NEXT_PUBLIC_BASE_URL=${{ needs.prepare.outputs.next_public_base_url }} \
--build-arg DIRECTUS_URL=${{ needs.prepare.outputs.directus_url }} \
@@ -181,6 +193,7 @@ jobs:
image: catthehacker/ubuntu:act-latest
steps:
- name: Notify Gotify
shell: bash
run: |
STATUS="${{ needs.deploy.result }}"
COLOR="info"