File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,25 @@ jobs:
2121 steps :
2222 - uses : actions/checkout@v3
2323
24+ - name : process event
25+ id : process_event
26+ uses :
olegtarasov/[email protected] 27+ with :
28+ tagRegex : " (${{ env.IMAGE_VERSION_PREFIX }}).*"
29+ - name : echo environment
30+ run : |
31+ echo "::group::environment"
32+ echo "ORG_NAMESPACE=${{ env.ORG_NAMESPACE }}"
33+ echo "IMAGE_NAME=${{ env.IMAGE_NAME }}"
34+ echo "IMAGE_VERSION_PREFIX=${{ env.IMAGE_VERSION_PREFIX }}"
35+ echo "GIT_TAG_NAME=${{ steps.process_event.outputs.tag }}"
36+ echo "::debug event=${{ toJSON( github.event ) }}"
37+ echo "::endgroup::"
2438 - name : dryrun-build
2539 if : ${{ github.event_name == 'pull_request' }}
2640 run : docker build ./${{ env.IMAGE_NAME }}
2741 - name : build-and-push
28- if : ${{ github.event_name == 'release' && startsWith(github.ref, env.IMAGE_VERSION_PREFIX) }}
42+ if : ${{ github.event_name == 'release' && startsWith( steps.process_event.outputs.tag env.IMAGE_VERSION_PREFIX ) }}
2943 uses : macbre/push-to-ghcr@master
3044 with :
3145 context : ./${{ env.IMAGE_NAME }}
You can’t perform that action at this time.
0 commit comments