From 1e45ef8379769cabb041ec35f33024cdddf5b24b36ee5a65f54838ebc3bdf649 Mon Sep 17 00:00:00 2001 From: Chillcog Date: Sun, 12 Jul 2026 14:57:36 -0700 Subject: [PATCH] Update deploy.yml --- .gitea/workflows/deploy.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 10d0d98..be3a04c 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -35,14 +35,17 @@ jobs: echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.chillcog.com -u "${{ git.repository_owner }}" --password-stdin - name: Detect and Build Images + env: + REPO_OWNER: ${{ git.repository_owner }} + EVENT_NAME: ${{ github.event_name }} run: | apk add --no-cache bash findutils FILES_TO_BUILD="" REGISTRY_HOST="git.chillcog.com" - OWNER_LOWER=$(echo "${{ git.repository_owner }}" | tr '[:upper:]' '[:lower:]') + OWNER_LOWER=$(echo "$REPO_OWNER" | tr '[:upper:]' '[:lower:]') - if [ "${{ github.event_name }}" = "schedule" ] || [ "${{ github.event_name }}" = "workflow_dispatch" ]; then + if [ "$EVENT_NAME" = "schedule" ] || [ "$EVENT_NAME" = "workflow_dispatch" ]; then echo "Scheduled or manual run triggered. Processing all YAML files..." FILES_TO_BUILD=$(find . -maxdepth 1 -name "*.yml" -o -name "*.yaml") else @@ -55,7 +58,9 @@ jobs: if [ ! -f "$file" ]; then continue; fi if [[ "$file" == .gitea/* ]]; then continue; fi filename=$(basename -- "$file") - image_name=$(echo "${filename%.*}" | tr '[:upper:]' '[:lower:]') + + image_base="${filename%.*}" + image_name=$(echo "$image_base" | tr '[:upper:]' '[:lower:]') echo "---------------------------------------------------" echo "Processing: $file -> Target: ${REGISTRY_HOST}/${OWNER_LOWER}/${image_name}:latest"