File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 description : ' Whether to tag releases with latest'
3333 required : true
3434 default : ' false'
35+ is_latest_boolean :
36+ type : boolean
37+ description : ' Whether to tag releases with latest'
38+ required : true
39+ default : false
40+
3541jobs :
3642 merge-digests :
3743 runs-on : ubuntu-latest
8490 run : |
8591 set -x
8692 echo is_latest: [${{ github.event.inputs.is_latest }}]
93+ echo is_latest_boolean: [${{ github.event.inputs.is_latest_boolean }}]
8794 docker buildx imagetools create -t "${{ env.DOCKER_ORG }}/defectdojo-${{ matrix.docker-image}}:${{ github.event.inputs.release_number }}" ${{ env.DOCKER_ORG }}/defectdojo-${{ matrix.docker-image}}:${{ github.event.inputs.release_number }}-${{ matrix.os }}
8895
8996 # debian images are the default / official ones, so these get the latest tag
@@ -94,6 +101,14 @@ jobs:
94101 set -x
95102 docker buildx imagetools create -t "${{ env.DOCKER_ORG }}/defectdojo-${{ matrix.docker-image}}:latest" ${{ env.DOCKER_ORG }}/defectdojo-${{ matrix.docker-image}}:${{ github.event.inputs.release_number }}-${{ matrix.os }}
96103
104+ # debian images are the default / official ones, so these get the latest tag
105+ - name : Tag Debian with latest tags boolean
106+ if : ${{ (matrix.os == 'debian') && (github.event.inputs.is_latest_boolean == 'true' || github.event.inputs.is_latest_boolean == true) }}
107+ working-directory : ${{ runner.temp }}/digests
108+ run : |
109+ set -x
110+ docker buildx imagetools create -t "${{ env.DOCKER_ORG }}/defectdojo-${{ matrix.docker-image}}:latest" ${{ env.DOCKER_ORG }}/defectdojo-${{ matrix.docker-image}}:${{ github.event.inputs.release_number }}-${{ matrix.os }}
111+
97112 # just for logging
98113 - name : Inspect default images
99114 if : ${{ matrix.os == 'debian' }}
You can’t perform that action at this time.
0 commit comments