File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 69
69
70
70
- name : Sanitize Dockerfile name
71
71
id : sanitize_name
72
- run : echo "safe_name=${{ matrix.dockerfile//\//_ }}" >> $GITHUB_OUTPUT
72
+ run : |
73
+ IMAGE_NAME="$(basename '${{ matrix.dockerfile }}' | tr -d '.Dockerfile'):${{github.sha}}"
74
+ echo "safe_name=$IMAGE_NAME" >> $GITHUB_OUTPUT
73
75
74
76
- name : Run Hadolint
75
77
Original file line number Diff line number Diff line change 85
85
working-directory : ${{ steps.dockerfile-info.outputs.dirname }}
86
86
# yamllint disable rule:line-length
87
87
run : |
88
- IMAGE_NAME="local/$(echo '${{ matrix.dockerfile }}' | tr '/' '_ '):${{ github.sha }}"
88
+ IMAGE_NAME="$(basename '${{ matrix.dockerfile }}' | tr -d '.Dockerfile '):${{github.sha}}"
89
89
docker build -t $IMAGE_NAME -f ${{ matrix.dockerfile }} .
90
90
echo "IMAGE_NAME=$IMAGE_NAME" >> $GITHUB_ENV
91
91
# yamllint enable rule:line-length
You can’t perform that action at this time.
0 commit comments