From f7291cd6b64a6030ed5431e967c1f079b057f4a8 Mon Sep 17 00:00:00 2001 From: Mohamed Labouardy Date: Fri, 17 Mar 2023 15:32:53 +0100 Subject: [PATCH] chore: skip the brew and docker build from goreleaser --- .github/workflows/release.yml | 11 +++++++++++ .goreleaser.yaml | 36 +++++++++++++++++------------------ 2 files changed, 29 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9dac92d34..c97d72714 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,3 +75,14 @@ jobs: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY }} + + - uses: docker/build-push-action@v3 + with: + context: . + file: ./Dockerfile + platforms: linux/amd64,linux/arm64 + push: true + build-args: | + SEGMENT_WRITE_KEY=${{ secrets.SEGMENT_WRITE_KEY }} + tags: ${{ github.ref_name }}, latest, $(git rev-parse --short "$GITHUB_SHA") + provenance: false \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 3970a60e9..4549cb614 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -19,25 +19,25 @@ blobs: bucket: komiser-releases folder: "/{{.Version}}" -brews: - - tap: - owner: tailwarden - name: homebrew-komiser - branch: master - folder: Formula - homepage: "https://komiser.io" - description: "Komiser.io command line interface" - url_template: "https://cli.komiser.io/{{ .Tag }}/{{ .ArtifactName }}" +# brews: +# - tap: +# owner: tailwarden +# name: homebrew-komiser +# branch: master +# folder: Formula +# homepage: "https://komiser.io" +# description: "Komiser.io command line interface" +# url_template: "https://cli.komiser.io/{{ .Tag }}/{{ .ArtifactName }}" -dockers: - - image_templates: - - tailwarden/komiser:{{ .Tag }} - - tailwarden/komiser:latest - - tailwarden/komiser:{{ .FullCommit }} - use: buildx - build_flag_templates: - - "--platform linux/amd64,linux/arm64" - - "--build-arg SEGMENT_WRITE_KEY=$SEGMENT_WRITE_KEY" +# dockers: +# - image_templates: +# - tailwarden/komiser:{{ .Tag }} +# - tailwarden/komiser:latest +# - tailwarden/komiser:{{ .FullCommit }} +# use: buildx +# build_flag_templates: +# - "--platform linux/amd64,linux/arm64" +# - "--build-arg SEGMENT_WRITE_KEY=$SEGMENT_WRITE_KEY" release: github: