Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,18 @@ jobs:
run: |
git tag ${{ steps.generate-version.outputs.version }}
git push --tags "https://codacy:${{ secrets.GITHUB_TOKEN }}@github.com/codacy/pulse-event-cli"
- name: Build docker image
run: docker build -t "codacy/pulse-event-cli:${{ steps.generate-version.outputs.version }}" .
- name: "Login to Docker Hub"
uses: docker/login-action@v1.12.0
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
- name: Release
- name: Push docker image
run: |
docker push "codacy/pulse-event-cli:${{ steps.generate-version.outputs.version }}"
docker push "codacy/pulse-event-cli:${{ steps.generate-version.outputs.version }}:latest"
- name: Push binaries to GitHub
uses: goreleaser/goreleaser-action@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 0 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,3 @@ changelog:
exclude:
- "^docs:"
- "^test:"
dockers_v2:
- images:
- "codacy/pulse-event-cli"
tags:
- "{{ .Tag }}"
- "v{{ .Major}}"
- "v{{ .Major }}.{{ .Minor }}"
- "latest"
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ FROM alpine:latest AS alpine
# We need git to automatically get the changes of a deployment
RUN apk add -U --no-cache ca-certificates git

# See https://goreleaser.com/customization/dockers_v2/#how-it-works
ARG TARGETPLATFORM

WORKDIR /workdir
COPY $TARGETPLATFORM/pulse-event-cli /bin/
COPY pulse-event-cli /bin/
ENTRYPOINT ["pulse-event-cli"]