added debug output to build.yml
This commit is contained in:
parent
4d11325404
commit
ab9cb93075
1 changed files with 7 additions and 2 deletions
|
|
@ -107,14 +107,19 @@ jobs:
|
|||
IMAGE_BASE="${{ steps.tags.outputs.image_base }}"
|
||||
VERSION="${{ steps.version.outputs.version }}"
|
||||
|
||||
echo "DEBUG: ref_name = ${{ gitea.ref_name }}"
|
||||
echo "DEBUG: event_name = ${{ gitea.event_name }}"
|
||||
echo "DEBUG: base_ref = ${{ gitea.base_ref }}"
|
||||
|
||||
docker push ${IMAGE_BASE}:${VERSION}
|
||||
docker push ${IMAGE_BASE}:${{ gitea.sha }}
|
||||
|
||||
if [ "${{ gitea.ref_name }}" = "main" ]; then
|
||||
echo "Pushing latest and main tags..."
|
||||
docker push ${IMAGE_BASE}:latest
|
||||
docker push ${IMAGE_BASE}:main
|
||||
elif [ "${{ gitea.ref_name }}" = "dev" ]; then
|
||||
docker push ${IMAGE_BASE}:dev
|
||||
else
|
||||
echo "Skipping latest/main tags - not on main branch (current: ${{ gitea.ref_name }})"
|
||||
fi
|
||||
|
||||
- name: Create and push git tag
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue