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 @@ -113,10 +113,12 @@ jobs:
113
113
114
114
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push
115
115
- name : " push|schedule: make ${{ inputs.target }}"
116
- run : " make ${{ inputs.target }}"
116
+ run : |
117
+ SANITIZED_REF_NAME=$(echo "${{ github.ref_name }}" | sed 's/[^a-zA-Z0-9._-]/_/g')
118
+ export IMAGE_TAG="${SANITIZED_REF_NAME}_${{ github.sha }}"
119
+ make ${{ inputs.target }}
117
120
if : ${{ fromJson(inputs.github).event_name == 'push' || fromJson(inputs.github).event_name == 'schedule' }}
118
121
env :
119
- IMAGE_TAG : " ${{ github.ref_name }}_${{ github.sha }}"
120
122
IMAGE_REGISTRY : " ghcr.io/${{ github.repository }}/workbench-images"
121
123
CONTAINER_BUILD_CACHE_ARGS : " --cache-from ${{ env.CACHE }} --cache-to ${{ env.CACHE }}"
122
124
You can’t perform that action at this time.
0 commit comments