File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -115,10 +115,12 @@ jobs:
115
115
116
116
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push
117
117
- name : " push|schedule: make ${{ inputs.target }}"
118
- run : " make ${{ inputs.target }}"
118
+ run : |
119
+ SANITIZED_REF_NAME=$(echo "${{ github.ref_name }}" | sed 's/[^a-zA-Z0-9._-]/_/g')
120
+ export IMAGE_TAG="${SANITIZED_REF_NAME}_${{ github.sha }}"
121
+ make ${{ inputs.target }}
119
122
if : ${{ fromJson(inputs.github).event_name == 'push' || fromJson(inputs.github).event_name == 'schedule' }}
120
123
env :
121
- IMAGE_TAG : " ${{ github.ref_name }}_${{ github.sha }}"
122
124
IMAGE_REGISTRY : " ghcr.io/${{ github.repository }}/workbench-images"
123
125
CONTAINER_BUILD_CACHE_ARGS : " --cache-from ${{ env.CACHE }} --cache-to ${{ env.CACHE }}"
124
126
You can’t perform that action at this time.
0 commit comments