File tree Expand file tree Collapse file tree 3 files changed +8
-13
lines changed
Expand file tree Collapse file tree 3 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,18 @@ jobs:
2727 run : |
2828 git tag ${{ steps.generate-version.outputs.version }}
2929 git push --tags "https://codacy:${{ secrets.GITHUB_TOKEN }}@github.com/codacy/pulse-event-cli"
30+ - name : Build docker image
31+ run : docker build -t "codacy/pulse-event-cli:${{ steps.generate-version.outputs.version }}" .
3032 - name : " Login to Docker Hub"
3133 uses : docker/login-action@v1.12.0
3234 with :
3335 username : ${{ secrets.DOCKER_USER }}
3436 password : ${{ secrets.DOCKER_PASS }}
35- - name : Release
37+ - name : Push docker image
38+ run : |
39+ docker push "codacy/pulse-event-cli:${{ steps.generate-version.outputs.version }}"
40+ docker push "codacy/pulse-event-cli:${{ steps.generate-version.outputs.version }}:latest"
41+ - name : Push binaries to GitHub
3642 uses : goreleaser/goreleaser-action@v6
3743 env :
3844 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -19,11 +19,3 @@ changelog:
1919 exclude :
2020 - " ^docs:"
2121 - " ^test:"
22- dockers_v2 :
23- - images :
24- - " codacy/pulse-event-cli"
25- tags :
26- - " {{ .Tag }}"
27- - " v{{ .Major}}"
28- - " v{{ .Major }}.{{ .Minor }}"
29- - " latest"
Original file line number Diff line number Diff line change @@ -3,9 +3,6 @@ FROM alpine:latest AS alpine
33# We need git to automatically get the changes of a deployment
44RUN apk add -U --no-cache ca-certificates git
55
6- # See https://goreleaser.com/customization/dockers_v2/#how-it-works
7- ARG TARGETPLATFORM
8-
96WORKDIR /workdir
10- COPY $TARGETPLATFORM/ pulse-event-cli /bin/
7+ COPY pulse-event-cli /bin/
118ENTRYPOINT ["pulse-event-cli" ]
You can’t perform that action at this time.
0 commit comments