File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 99 branches :
1010 - master
1111 tags :
12- - ' *.*.*'
12+ - ' v *.*.*'
1313 pull_request :
1414
1515# A workflow run is made up of one or more jobs that can run sequentially or in parallel
4343 VERSION=pr-${{ github.event.number }}
4444 fi
4545 TAGS="${DOCKER_IMAGE}:${VERSION}"
46- if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
46+ if [[ $VERSION =~ ^v [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
4747 MINOR=${VERSION%.*}
4848 MAJOR=${MINOR%.*}
4949 TAGS="$TAGS,${DOCKER_IMAGE}:${MINOR},${DOCKER_IMAGE}:${MAJOR},${DOCKER_IMAGE}:latest"
9191 org.opencontainers.image.revision=${{ github.sha }}
9292 org.opencontainers.image.licenses=${{ github.event.repository.license.spdx_id }}
9393
94- - name : Update repo description
95- uses : peter-evans/dockerhub-description@v2
96- if : ${{ github.event_name != 'pull_request' }}
97- env :
98- DOCKERHUB_USERNAME : ${{ secrets.DOCKERHUB_USERNAME }}
99- DOCKERHUB_PASSWORD : ${{ secrets.DOCKERHUB_TOKEN }}
100- DOCKERHUB_REPOSITORY : ${{ steps.prep.outputs.image }}
101-
10294 - name : Image digest
10395 run : echo ${{ steps.docker_build.outputs.digest }}
You can’t perform that action at this time.
0 commit comments