@@ -21,33 +21,33 @@ jobs:
2121 runs-on : ubuntu-latest
2222
2323 steps :
24- - name : Log in to the container registry
25- uses : docker/login-action@v3
26- with :
27- registry : ${{ env.REGISTRY }}
28- username : ${{ github.actor }}
29- password : ${{ secrets.GITHUB_TOKEN }}
30-
31- - name : Checkout
32- uses : actions/checkout@v5
33-
34- - name : Set up Go
35- uses : actions/setup-go@v5
36- with :
37- go-version-file : ' go.mod'
38-
39- - name : Lint
40- uses : golangci/golangci-lint-action@v8
41-
42- - name : Make tag
43- run : |
44- [ "${GITHUB_EVENT_NAME}" == 'pull_request' ] && echo "tag=${GITHUB_HEAD_REF##*/}" >> $GITHUB_ENV || true
45- [ "${GITHUB_EVENT_NAME}" == 'release' ] && echo "tag=${GITHUB_REF##*/}" >> $GITHUB_ENV || true
46- [ "${GITHUB_EVENT_NAME}" == 'push' ] && echo "tag=latest" >> $GITHUB_ENV || true
47-
48- - name : Build and push image
49- uses : docker/build-push-action@v6
50- with :
51- context : .
52- push : true
53- tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.tag }}
24+ - name : Log in to the container registry
25+ uses : docker/login-action@v3
26+ with :
27+ registry : ${{ env.REGISTRY }}
28+ username : ${{ github.actor }}
29+ password : ${{ secrets.GITHUB_TOKEN }}
30+
31+ - name : Checkout
32+ uses : actions/checkout@v6
33+
34+ - name : Set up Go
35+ uses : actions/setup-go@v6
36+ with :
37+ go-version-file : ' go.mod'
38+
39+ - name : Lint
40+ uses : golangci/golangci-lint-action@v9
41+
42+ - name : Make tag
43+ run : |
44+ [ "${GITHUB_EVENT_NAME}" == 'pull_request' ] && echo "tag=${GITHUB_HEAD_REF##*/}" >> $GITHUB_ENV || true
45+ [ "${GITHUB_EVENT_NAME}" == 'release' ] && echo "tag=${GITHUB_REF##*/}" >> $GITHUB_ENV || true
46+ [ "${GITHUB_EVENT_NAME}" == 'push' ] && echo "tag=latest" >> $GITHUB_ENV || true
47+
48+ - name : Build and push image
49+ uses : docker/build-push-action@v6
50+ with :
51+ context : .
52+ push : true
53+ tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.tag }}
0 commit comments