From ca1feb05cc5e08f795301e6935a2c962f09887c1ea3fa13f7e07ab17c79977c5 Mon Sep 17 00:00:00 2001 From: Chillcog Date: Sun, 12 Jul 2026 14:52:03 -0700 Subject: [PATCH] Update deploy.yml --- .gitea/workflows/deploy.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 999e3eb..90a5af4 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -10,13 +10,23 @@ on: jobs: build-and-push: - runs-on: local - + strategy: + matrix: + runner: [linux-amd64, linux-arm64] + runs-on: ${{ matrix.runner }} + + container: + image: docker:latest + volumes: + - /var/run/docker.sock:/var/run/docker.sock + steps: - name: Checkout Code - uses: actions/checkout@v4 - with: - fetch-depth: 0 + run: | + apk add --no-cache git + git config --global init.defaultObjectFormat sha256 + git clone https://${{ github.token }}@git.chillcog.com/${{ github.repository }}.git . + git checkout ${{ github.sha }} - name: Log in to DHI Registry run: | @@ -28,6 +38,8 @@ jobs: - name: Detect and Build Images run: | + apk add --no-cache bash findutils + FILES_TO_BUILD="" REGISTRY_HOST="git.chillcog.com" OWNER_LOWER=$(echo "${{ git.repository_owner }}" | tr '[:upper:]' '[:lower:]') @@ -37,7 +49,7 @@ jobs: FILES_TO_BUILD=$(find . -maxdepth 1 -name "*.yml" -o -name "*.yaml") else echo "Push triggered. Detecting changed files..." - FILES_TO_BUILD=$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} 2>/dev/null | grep -E '\.(yml|yaml)$' || true) + FILES_TO_BUILD=$(find . -maxdepth 1 -name "*.yml" -o -name "*.yaml") fi for file in $FILES_TO_BUILD; do