diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index be3a04c..79f3bf0 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -32,18 +32,20 @@ jobs: - name: Log in to Gitea Container Registry run: | - echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.chillcog.com -u "${{ git.repository_owner }}" --password-stdin + echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.chillcog.com -u "${{ github.repository_owner }}" --password-stdin - name: Detect and Build Images env: - REPO_OWNER: ${{ git.repository_owner }} + REPO_OWNER: ${{ github.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 "$REPO_OWNER" | tr '[:upper:]' '[:lower:]') + + IF_OWNER="${REPO_OWNER:-chillcog}" + OWNER_LOWER=$(echo "$IF_OWNER" | tr '[:upper:]' '[:lower:]') if [ "$EVENT_NAME" = "schedule" ] || [ "$EVENT_NAME" = "workflow_dispatch" ]; then echo "Scheduled or manual run triggered. Processing all YAML files..."