feat: debug image name
This commit is contained in:
parent
82493003e8
commit
fe03b9a881
2 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
name: Builds and Publish Docker Image
|
||||
name: Build and Publish Docker Image
|
||||
description: Define IMAGE_NAME to Git Hub env, based on repository name
|
||||
inputs:
|
||||
username:
|
||||
|
|
|
@ -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
|
||||
if [ "${{ github.ref_name }}" != "master" ] && [ "${{ github.ref_name }}" != "main" ]; then
|
||||
export IMAGE_NAME=${{ inputs.username }}/$REPO_NAME-dev
|
||||
else
|
||||
export IMAGE_NAME=${{ inputs.username }}/$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