27
27
GITHUB_TOKEN : ${{ secrets.GOLANGCI_LINT_TOKEN }}
28
28
29
29
docker-release :
30
- needs : [ release ]
30
+ needs : release
31
31
runs-on : ubuntu-latest
32
32
strategy :
33
33
matrix :
@@ -48,23 +48,23 @@ jobs:
48
48
- name : Prepare
49
49
id : prepare
50
50
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
68
68
69
69
- name : Set up QEMU
70
70
uses : docker/setup-qemu-action@v1
0 commit comments