File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,7 @@ name: Docker
66# documentation.
77
88on :
9- schedule :
10- - cron : ' 41 6 * * *'
11- push :
12- branches :
13- - master
14- workflow_call :
9+ release :
1510
1611
1712env :
3631 - name : Checkout repository
3732 uses : actions/checkout@v4
3833
39- # Get release version information from github commits
40- - name : Semantic Release
41- id : semantic
42- uses : cycjimmy/semantic-release-action@v4
43- env :
44- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45-
4634 # Install the cosign tool except on PR
4735 # https://github.com/sigstore/cosign-installer
4836 - name : Install cosign
@@ -78,13 +66,12 @@ jobs:
7866 # Build and push Docker image with Buildx (don't push on PR)
7967 # https://github.com/docker/build-push-action
8068 - name : Build and push Docker image
81- if : ${{ steps.semantic.outputs.new_release_version }}
8269 id : build-and-push
8370 uses : docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
8471 with :
8572 context : .
8673 push : ${{ github.event_name != 'pull_request' }}
87- tags : ${{ steps.semantic.outputs.new_release_version }}
74+ tags : ${{ github.event.release.name }}
8875 labels : ${{ steps.meta.outputs.labels }}
8976 cache-from : type=gha
9077 cache-to : type=gha,mode=max
You can’t perform that action at this time.
0 commit comments