|
|
@ -31,14 +31,26 @@ jobs:
|
|
|
|
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # pin@5.5.0
|
|
|
|
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # pin@5.5.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
go-version: '${{ env.GOLANG_VERSION }}'
|
|
|
|
go-version: '${{ env.GOLANG_VERSION }}'
|
|
|
|
|
|
|
|
|
|
|
|
- name: Run unit tests
|
|
|
|
- name: Run unit tests
|
|
|
|
run: make test-coverage
|
|
|
|
run: make test-coverage
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build Helm Binaries
|
|
|
|
- name: Build Helm Binaries
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
set -eu -o pipefail
|
|
|
|
set -eu -o pipefail
|
|
|
|
|
|
|
|
|
|
|
|
make build-cross VERSION="${{ github.ref_name }}"
|
|
|
|
- name: Run Go Release
|
|
|
|
make dist checksum VERSION="${{ github.ref_name }}"
|
|
|
|
uses: goreleaser/goreleaser-action@v2
|
|
|
|
|
|
|
|
if: success() && startsWith(github.ref, 'refs/tags/')
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
version: latest
|
|
|
|
|
|
|
|
args: release --rm-dist
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Verify checksum
|
|
|
|
|
|
|
|
run: |
|
|
|
|
|
|
|
|
make dist checksum VERSION="${{ github.ref_name }}"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set latest version
|
|
|
|
- name: Set latest version
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
@ -93,10 +105,18 @@ jobs:
|
|
|
|
- name: Run unit tests
|
|
|
|
- name: Run unit tests
|
|
|
|
run: make test-coverage
|
|
|
|
run: make test-coverage
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build Helm Binaries
|
|
|
|
- name: Run Go Release
|
|
|
|
|
|
|
|
uses: goreleaser/goreleaser-action@v2
|
|
|
|
|
|
|
|
if: success() && startsWith(github.ref, 'refs/tags/')
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
version: latest
|
|
|
|
|
|
|
|
args: release --rm-dist
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Verify checksum
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
make build-cross
|
|
|
|
make dist checksum VERSION="canary"
|
|
|
|
make dist checksum VERSION="canary"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Upload Binaries
|
|
|
|
- name: Upload Binaries
|
|
|
|
uses: bacongobbler/azure-blob-storage-upload@50f7d898b7697e864130ea04c303ca38b5751c50 # pin@3.0.0
|
|
|
|
uses: bacongobbler/azure-blob-storage-upload@50f7d898b7697e864130ea04c303ca38b5751c50 # pin@3.0.0
|
|
|
|