Skip to content

Commit

Permalink
chore: rethink release workflow choices & update docker apline image
Browse files Browse the repository at this point in the history
  • Loading branch information
hacktivist123 committed Dec 22, 2024
1 parent 38891a7 commit 3748a4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Auto-Tag, Release & Docker Push
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
release:
Expand Down Expand Up @@ -40,9 +38,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

- name: Build
run: go build -o kpeek .

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand All @@ -56,5 +51,7 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/arm/v7,linux/arm/v6,linux/386
platforms: linux/amd64,linux/arm64
tags: hacktivist123/kpeek:latest
cache-from: type=registry,ref=hacktivist123/kpeek:buildcache
cache-to: type=registry,ref=hacktivist123/kpeek:buildcache,mode=max
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN go mod download
COPY . .
RUN go build -o kpeek .

FROM alpine:3.18
FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/kpeek /usr/local/bin/kpeek
ENTRYPOINT ["kpeek"]

0 comments on commit 3748a4e

Please sign in to comment.