From 7e1b505fd98053dcf9e016b3ec5475e8b81a3acf Mon Sep 17 00:00:00 2001 From: Eric Promislow Date: Thu, 16 May 2024 11:19:42 -0700 Subject: [PATCH] WIP - publisher and releaser only make sense on a new tag --- .github/workflows/publish.yaml | 3 ++- .github/workflows/release.yaml | 25 +++++++++++++------------ 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 3b835bc7e..9ae78cdc0 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -2,7 +2,8 @@ name : Publish Webhook Images on: push: - pull_request: + tags: + - "*" env: REGISTRY: docker.io diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 518ca300f..f283b5304 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,21 +2,22 @@ name: goreleaser on: push: - pull_request: + tags: + - '*' permissions: contents: write jobs: - ci: - runs-on : ubuntu-latest + goreleaser: + runs-on: ubuntu-latest steps: - - name : Checkout repository - uses : actions/checkout@v4 - with : - fetch-depth : 0 - - name : build - run : make build + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: build + run: make build #uses: ./.github/workflows/ci.yaml permissions: contents: read @@ -33,9 +34,9 @@ jobs: - uses: actions/setup-go@v5 with: go-version: 1.22 - - name : Package release helm charts - run : make package-helm - - run : mkdir -p ./build/artifacts/ && mv -v ./dist/artifacts/ ./build/ + - name: Package release helm charts + run: make package-helm + - run: mkdir -p ./build/artifacts/ && mv -v ./dist/artifacts/ ./build/ - uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser