Skip to content

Commit 610e47e

Browse files
authored
Update main.yml
1 parent bfe2562 commit 610e47e

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
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
@@ -43,7 +43,7 @@ jobs:
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"
@@ -91,13 +91,5 @@ jobs:
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 }}

0 commit comments

Comments
 (0)