File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 3232 username : ${{ github.actor }}
3333 password : ${{ secrets.GITHUB_TOKEN }}
3434 - name : Set tag & Dockerfile
35+ if : github.ref_type == 'branch'
3536 run : |
3637 if [[ "${{ inputs.variant }}" != "" ]]
3738 then
6667 echo DOCKER_TAG=$(echo "ghcr.io/${{ github.repository }}" | tr '[:upper:]' '[:lower:]'):$TAG >> $GITHUB_ENV
6768 echo DOCKERFILE="${DOCKERFILE}" >> $GITHUB_ENV
6869 cat $GITHUB_ENV
70+ - name : Set tag & Dockerfile
71+ if : github.ref_type == 'tag'
72+ run : |
73+ if [[ "${{ inputs.variant }}" != "" ]]
74+ then
75+ VARIANT=-${{ inputs.variant }}
76+ fi
77+ TAG=latest
78+ if [[ $VARIANT == "" ]]
79+ then
80+ DOCKERFILE=Dockerfile
81+ else
82+ DOCKERFILE=variant$VARIANT.Dockerfile
83+ fi
84+ TAG=$TAG$VARIANT
85+ echo DOCKER_TAG=$(echo "ghcr.io/${{ github.repository }}" | tr '[:upper:]' '[:lower:]'):$TAG >> $GITHUB_ENV
86+ echo DOCKERFILE="${DOCKERFILE}" >> $GITHUB_ENV
87+ cat $GITHUB_ENV
6988 - name : Prep Dockerfiles for forked repository
7089 if : ${{ github.repository_owner }} != 'FCP-INDI'
7190 run : .github/scripts/local_ghcr $DOCKERFILE ${{ github.repository_owner }} $DOCKER_TAG
You can’t perform that action at this time.
0 commit comments