feat: debug image name

This commit is contained in:
Leandro Costa 2025-06-21 18:40:45 -03:00
parent 82493003e8
commit b1ef7e758a
5 changed files with 68 additions and 5 deletions

View file

@ -13,9 +13,10 @@ runs:
export REPO_FULL=${{ github.repository }}
export REPO_NAME=${REPO_FULL#*/}
if [ "${{ github.ref_name }}" != "master" && "${{ github.ref_name }}" != "main" ]; then
export IMAGE_NAME=${{ inputs.username }}/$REPO_NAME-dev
if [ "${{ github.ref_name }}" != "master" ] && [ "${{ github.ref_name }}" != "main" ]; then
export IMAGE_NAME=$REPO_NAME-dev
else
export IMAGE_NAME=${{ inputs.username }}/$REPO_NAME
export IMAGE_NAME=$REPO_NAME
fi
echo "IMAGE_NAME=$IMAGE_NAME" >> $GITHUB_ENV
echo "Image Name: $IMAGE_NAME, for Branch: ${{ github.ref_name }}"