New ๐ŸŒŠ wave for @helm

Commit fac8772c

fac8772c2f33Merged

Sviatoslav Dumchenko <[email protected]> ยท 3 years ago ยท 3 files ยท ~3 modified

Description

chore(ci): tune goreleaser

Details

Commit
fac8772c2f33
Parent
52a8fadc71d2

.github/workflows/goreleaser-test.ymlmodifiedView file

@@ -9,7 +9,7 @@
99
1010 jobs:
1111 goreleaser:
12- runs-on: ubuntu-latest
12+ runs-on: macos-latest
1313 permissions:
1414 contents: read
1515 steps:
@@ -22,3 +22,63 @@
2222 with:
2323 version: latest
2424 args: check
25+
26+ goreleaser-test:
27+ runs-on: macos-latest
28+ permissions:
29+ contents: write # to create release
30+ issues: write # to close milestone
31+ packages: write # to upload package
32+ needs:
33+ - tagger
34+ - generate-changelog
35+ steps:
36+ - uses: actions/checkout@v3
37+ with:
38+ fetch-depth: 0
39+
40+ - name: Setup QEMU
41+ uses: docker/setup-qemu-action@v2
42+
43+ - name: Setup Docker Buildx
44+ uses: docker/setup-buildx-action@v2
45+
46+ - name: Login to GitHub Container Registry
47+ uses: docker/login-action@v2
48+ with:
49+ registry: ghcr.io
50+ username: ${{ github.actor }}
51+ password: ${{ secrets.GITHUB_TOKEN }}
52+
53+ - name: Login to Docker Hub
54+ uses: docker/login-action@v2
55+ with:
56+ username: ${{ secrets.DOCKERHUB_USER }}
57+ password: ${{ secrets.DOCKERHUB_TOKEN }}
58+
59+ - uses: actions/setup-go@v4
60+ with:
61+ go-version: "1.20"
62+
63+ - name: Cache Go modules
64+ uses: actions/cache@v3
65+ with:
66+ path: |
67+ ~/.cache/go-build
68+ ~/go/pkg/mod
69+ key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
70+ restore-keys: |
71+ ${{ runner.os }}-go-
72+
73+ - name: Run GoReleaser
74+ uses: goreleaser/goreleaser-action@v4
75+ with:
76+ version: latest
77+ args: release --skip-validate --clean --skip-publish
78+ env:
79+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80+ HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.CR_PAT }}
81+ TELEGRAM_TOKEN: ${{ secrets.BOT_TOKEN }}
82+
83+ - name: Generate schema.json
84+ run: ./dist/helmwave_darwin_amd64_v1/helmwave schema > schema.json