From 3748a4ea33fd0f56b3d76ed6acb43505890859d9 Mon Sep 17 00:00:00 2001 From: hacktivist123 Date: Sun, 22 Dec 2024 01:08:19 +0000 Subject: [PATCH] chore: rethink release workflow choices & update docker apline image --- .github/workflows/release.yml | 9 +++------ Dockerfile | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b186d7f..259971d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,8 +3,6 @@ name: Auto-Tag, Release & Docker Push on: push: branches: [ "main" ] - pull_request: - branches: [ "main" ] jobs: release: @@ -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 @@ -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 diff --git a/Dockerfile b/Dockerfile index 719efdb..84e1374 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]