Skip to content

Commit

Permalink
Merge pull request #490 from mallardduck/gha-job-reduction
Browse files Browse the repository at this point in the history
[GHA] Reduce jobs on tag publish and fix tag var/context
  • Loading branch information
mallardduck authored Jul 19, 2024
2 parents 855d615 + 37a723c commit 823ca3b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 40 deletions.
28 changes: 27 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name : Publish Images
name : Publish Images & artifacts (via goreleaser)

on:
push:
Expand All @@ -9,12 +9,38 @@ env:
REGISTRY: docker.io
REPO : rancher

permissions:
contents: write

jobs:
ci :
uses: rancher/backup-restore-operator/.github/workflows/ci.yaml@release/v5.0
permissions:
contents: read
goreleaser:
needs: [
ci
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
- 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/
- uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
push:
needs : [
ci
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/release.yaml

This file was deleted.

0 comments on commit 823ca3b

Please sign in to comment.