feat: debug image name
This commit is contained in:
parent
82493003e8
commit
b1ef7e758a
5 changed files with 68 additions and 5 deletions
|
@ -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 }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue