feat: enhance build and deploy workflows with debug information and environment variable handling
All checks were successful
Build And Publish Production Image / Build And Publish Production Image (push) Successful in 7s
All checks were successful
Build And Publish Production Image / Build And Publish Production Image (push) Successful in 7s
This commit is contained in:
@@ -19,6 +19,30 @@ jobs:
|
||||
with:
|
||||
github-server-url: http://gitea.lab
|
||||
|
||||
- name: Build debug context
|
||||
run: |
|
||||
set -eu
|
||||
echo "Build debug"
|
||||
echo "Repository: ${GITEA_REPOSITORY:-unknown}"
|
||||
echo "Ref: ${GITEA_REF:-unknown}"
|
||||
echo "Sha: ${GITEA_SHA:-unknown}"
|
||||
echo "Runner OS: ${RUNNER_OS:-unknown}"
|
||||
echo "Registry: ${REGISTRY}"
|
||||
echo "Image: ${IMAGE_NAME}"
|
||||
echo "Image latest tag: ${REGISTRY}/${IMAGE_NAME}:latest"
|
||||
echo "Image sha tag: ${REGISTRY}/${IMAGE_NAME}:${GITEA_SHA:-unknown}"
|
||||
echo "HTTP_PROXY=${HTTP_PROXY:-<empty>}"
|
||||
echo "HTTPS_PROXY=${HTTPS_PROXY:-<empty>}"
|
||||
echo "NO_PROXY=${NO_PROXY:-<empty>}"
|
||||
|
||||
if command -v ip >/dev/null 2>&1; then
|
||||
echo "Runner network info:"
|
||||
ip -4 addr show || true
|
||||
ip route || true
|
||||
else
|
||||
hostname -I || true
|
||||
fi
|
||||
|
||||
- name: Verify Docker CLI
|
||||
run: docker version
|
||||
|
||||
@@ -33,3 +57,9 @@ jobs:
|
||||
run: |
|
||||
docker build -t "${REGISTRY}/${IMAGE_NAME}:latest" -f Dockerfile.allinone .
|
||||
docker tag "${REGISTRY}/${IMAGE_NAME}:latest" "${REGISTRY}/${IMAGE_NAME}:${{ gitea.sha }}"
|
||||
|
||||
- name: Build result debug
|
||||
run: |
|
||||
set -eu
|
||||
echo "Listing produced image tags"
|
||||
docker image ls "${REGISTRY}/${IMAGE_NAME}" --format 'table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.CreatedSince}}' || true
|
||||
|
||||
Reference in New Issue
Block a user