Add actor normalization and debug logging to deploy-image.yml
Build and Push Docker Image / build-and-push (push) Failing after 11s

This commit is contained in:
2026-06-29 18:25:42 +02:00
parent 98f21c3ed4
commit de450eb384
+9 -1
View File
@@ -20,6 +20,7 @@ jobs:
run: | run: |
REGISTRY=$(echo "${{ gitea.server_url }}" | sed 's|https\?://||') REGISTRY=$(echo "${{ gitea.server_url }}" | sed 's|https\?://||')
OWNER=$(echo "${{ gitea.repository_owner }}" | tr '[:upper:]' '[:lower:]') OWNER=$(echo "${{ gitea.repository_owner }}" | tr '[:upper:]' '[:lower:]')
ACTOR=$(echo "${{ gitea.actor }}" | tr '[:upper:]' '[:lower:]')
IMAGE_NAME="javadocviewerservice" IMAGE_NAME="javadocviewerservice"
FULL_IMAGE="${REGISTRY}/${OWNER}/${IMAGE_NAME}" FULL_IMAGE="${REGISTRY}/${OWNER}/${IMAGE_NAME}"
@@ -31,15 +32,22 @@ jobs:
fi fi
echo "registry=${REGISTRY}" >> "$GITHUB_OUTPUT" echo "registry=${REGISTRY}" >> "$GITHUB_OUTPUT"
echo "actor=${ACTOR}" >> "$GITHUB_OUTPUT"
echo "image=${FULL_IMAGE}" >> "$GITHUB_OUTPUT" echo "image=${FULL_IMAGE}" >> "$GITHUB_OUTPUT"
echo "tag=${TAG}" >> "$GITHUB_OUTPUT" echo "tag=${TAG}" >> "$GITHUB_OUTPUT"
echo "Image: ${FULL_IMAGE}:${TAG}" echo "Image: ${FULL_IMAGE}:${TAG}"
- name: Debug login values
run: |
echo "Registry: ${{ steps.meta.outputs.registry }}"
echo "Actor: ${{ steps.meta.outputs.actor }}"
echo "Token set: ${{ secrets.GITEA_TOKEN != '' }}"
- name: Log in to Gitea Container Registry - name: Log in to Gitea Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ steps.meta.outputs.registry }} registry: ${{ steps.meta.outputs.registry }}
username: ${{ gitea.actor }} username: ${{ steps.meta.outputs.actor }}
password: ${{ secrets.GITEA_TOKEN }} password: ${{ secrets.GITEA_TOKEN }}
- name: Build and push Docker image - name: Build and push Docker image