Skip to content

Commit effc9ca

Browse files
committed
fix: Don't use goreleaser for docker image building
1 parent e2f196d commit effc9ca

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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 }}

.goreleaser.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,3 @@ changelog:
1919
exclude:
2020
- "^docs:"
2121
- "^test:"
22-
dockers:
23-
- image_templates:
24-
- "codacy/pulse-event-cli:{{ .Tag }}"
25-
- "codacy/pulse-event-cli:v{{ .Major }}"
26-
- "codacy/pulse-event-cli:{{ .Major }}.{{ .Minor }}"
27-
- "codacy/pulse-event-cli:latest"

Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ FROM alpine:latest AS alpine
33
# We need git to automatically get the changes of a deployment
44
RUN apk add -U --no-cache ca-certificates git
55

6-
# See https://goreleaser.com/customization/dockers_v2/#how-it-works
7-
ARG TARGETPLATFORM
8-
96
WORKDIR /workdir
10-
COPY $TARGETPLATFORM/pulse-event-cli /bin/
7+
COPY pulse-event-cli /bin/
118
ENTRYPOINT ["pulse-event-cli"]

0 commit comments

Comments
 (0)