Skip to content

Commit 92904ce

Browse files
authored
fix: Don't use goreleaser for docker images (#35)
1 parent 9a85539 commit 92904ce

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
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 & 8 deletions
Original file line numberDiff line numberDiff 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"

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)