FIX(ci): fix Gitea Actions context variables

- Use github.* instead of gitea.* context
- Fix workflow variable references
This commit is contained in:
2025-12-11 22:59:58 +09:00
parent 5bce035df6
commit 6480925d47

View File

@@ -9,7 +9,7 @@ on:
env: env:
REGISTRY: gitea0213.kro.kr REGISTRY: gitea0213.kro.kr
IMAGE_NAME: ${{ gitea.repository }} IMAGE_NAME: ${{ github.repository }}
jobs: jobs:
build-and-push: build-and-push:
@@ -33,13 +33,13 @@ jobs:
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
username: ${{ gitea.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITEA_TOKEN }} password: ${{ secrets.GITEA_TOKEN }}
- name: Lowercase repository name - name: Lowercase repository name
id: lowercase id: lowercase
run: | run: |
echo "repo=$(echo ${{ gitea.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT echo "repo=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
- name: Extract metadata (tags, labels) - name: Extract metadata (tags, labels)
id: meta id: meta
@@ -77,10 +77,10 @@ jobs:
echo "---" echo "---"
# Get commit SHA (full 40 characters) # Get commit SHA (full 40 characters)
COMMIT_SHA="${{ gitea.sha }}" COMMIT_SHA="${{ github.sha }}"
# Get current branch name # Get current branch name
BRANCH_NAME="${{ gitea.ref_name }}" BRANCH_NAME="${{ github.ref_name }}"
echo "Branch: $BRANCH_NAME" echo "Branch: $BRANCH_NAME"
# Method 1: Extract the full SHA tag from docker/metadata-action output # Method 1: Extract the full SHA tag from docker/metadata-action output
@@ -124,7 +124,7 @@ jobs:
fi fi
# Determine overlay based on branch # Determine overlay based on branch
BRANCH_NAME="${{ gitea.ref_name }}" BRANCH_NAME="${{ github.ref_name }}"
if [ "$BRANCH_NAME" = "main" ]; then if [ "$BRANCH_NAME" = "main" ]; then
OVERLAY="prod" OVERLAY="prod"
elif [ "$BRANCH_NAME" = "develop" ]; then elif [ "$BRANCH_NAME" = "develop" ]; then