2727 GITHUB_TOKEN : ${{ secrets.GOLANGCI_LINT_TOKEN }}
2828
2929 docker-release :
30- needs : [ release ]
30+ needs : release
3131 runs-on : ubuntu-latest
3232 strategy :
3333 matrix :
@@ -48,23 +48,23 @@ jobs:
4848 - name : Prepare
4949 id : prepare
5050 run : |
51- TAG=${GITHUB_REF#refs/tags/}
52- MAJOR=${TAG%.*}
53- SHORT_COMMIT=${GITHUB_SHA::8}
54- DATE=$(date '+%Y-%m-%dT%H:%M:%SZ')
55- echo ::set-output name=tag_name::${TAG}
56- echo ::set-output name=major_tag::${MAJOR}
57- echo ::set-output name=short_commit::${SHORT_COMMIT}
58- echo ::set-output name=date::${DATE}
59- if [[ ${{ matrix.target.Dockerfile }} == *"alpine"* ]]; then
60- echo ::set-output name=full_tag_name::${TAG}-alpine
61- echo ::set-output name=full_major_tag::${MAJOR}-alpine
62- echo ::set-output name=latest_tag::latest-alpine
63- else
64- echo ::set-output name=full_tag_name::${TAG}
65- echo ::set-output name=full_major_tag::${MAJOR}
66- echo ::set-output name=latest_tag::latest
67- fi
51+ TAG=${GITHUB_REF#refs/tags/}
52+ MAJOR=${TAG%.*}
53+ SHORT_COMMIT=${GITHUB_SHA::8}
54+ DATE=$(date '+%Y-%m-%dT%H:%M:%SZ')
55+ echo ::set-output name=tag_name::${TAG}
56+ echo ::set-output name=major_tag::${MAJOR}
57+ echo ::set-output name=short_commit::${SHORT_COMMIT}
58+ echo ::set-output name=date::${DATE}
59+ if [[ ${{ matrix.target.Dockerfile }} == *"alpine"* ]]; then
60+ echo ::set-output name=full_tag_name::${TAG}-alpine
61+ echo ::set-output name=full_major_tag::${MAJOR}-alpine
62+ echo ::set-output name=latest_tag::latest-alpine
63+ else
64+ echo ::set-output name=full_tag_name::${TAG}
65+ echo ::set-output name=full_major_tag::${MAJOR}
66+ echo ::set-output name=latest_tag::latest
67+ fi
6868
6969 - name : Set up QEMU
7070 uses : docker/setup-qemu-action@v1
0 commit comments