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 32
32
username : ${{ github.actor }}
33
33
password : ${{ secrets.GITHUB_TOKEN }}
34
34
- name : Set tag & Dockerfile
35
+ if : github.ref_type == 'branch'
35
36
run : |
36
37
if [[ "${{ inputs.variant }}" != "" ]]
37
38
then
66
67
echo DOCKER_TAG=$(echo "ghcr.io/${{ github.repository }}" | tr '[:upper:]' '[:lower:]'):$TAG >> $GITHUB_ENV
67
68
echo DOCKERFILE="${DOCKERFILE}" >> $GITHUB_ENV
68
69
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
69
88
- name : Prep Dockerfiles for forked repository
70
89
if : ${{ github.repository_owner }} != 'FCP-INDI'
71
90
run : .github/scripts/local_ghcr $DOCKERFILE ${{ github.repository_owner }} $DOCKER_TAG
You can’t perform that action at this time.
0 commit comments