Add actor normalization and debug logging to deploy-image.yml
Build and Push Docker Image / build-and-push (push) Failing after 11s
Build and Push Docker Image / build-and-push (push) Failing after 11s
This commit is contained in:
@@ -20,6 +20,7 @@ jobs:
|
||||
run: |
|
||||
REGISTRY=$(echo "${{ gitea.server_url }}" | sed 's|https\?://||')
|
||||
OWNER=$(echo "${{ gitea.repository_owner }}" | tr '[:upper:]' '[:lower:]')
|
||||
ACTOR=$(echo "${{ gitea.actor }}" | tr '[:upper:]' '[:lower:]')
|
||||
IMAGE_NAME="javadocviewerservice"
|
||||
FULL_IMAGE="${REGISTRY}/${OWNER}/${IMAGE_NAME}"
|
||||
|
||||
@@ -31,15 +32,22 @@ jobs:
|
||||
fi
|
||||
|
||||
echo "registry=${REGISTRY}" >> "$GITHUB_OUTPUT"
|
||||
echo "actor=${ACTOR}" >> "$GITHUB_OUTPUT"
|
||||
echo "image=${FULL_IMAGE}" >> "$GITHUB_OUTPUT"
|
||||
echo "tag=${TAG}" >> "$GITHUB_OUTPUT"
|
||||
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
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ steps.meta.outputs.registry }}
|
||||
username: ${{ gitea.actor }}
|
||||
username: ${{ steps.meta.outputs.actor }}
|
||||
password: ${{ secrets.GITEA_TOKEN }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
|
||||
Reference in New Issue
Block a user