mirror of
https://github.com/helm/helm.git
synced 2026-05-22 01:45:32 -04:00
Merge 8b5c6e67e3 into 16a39b73fd
This commit is contained in:
commit
1eaf5cc8fe
1 changed files with 29 additions and 12 deletions
41
.github/workflows/release.yml
vendored
41
.github/workflows/release.yml
vendored
|
|
@ -1,13 +1,18 @@
|
|||
name: release
|
||||
|
||||
on:
|
||||
create:
|
||||
tags:
|
||||
- v*
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions: read-all
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: false
|
||||
|
||||
# Note the only differences between release and canary-release jobs are:
|
||||
# - only canary passes --overwrite flag
|
||||
|
|
@ -18,6 +23,7 @@ jobs:
|
|||
release:
|
||||
if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'helm/helm'
|
||||
runs-on: ubuntu-latest-16-cores
|
||||
timeout-minutes: 45
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # pin@v6.0.2
|
||||
|
|
@ -25,25 +31,30 @@ jobs:
|
|||
fetch-depth: 0
|
||||
|
||||
- name: Add variables to environment file
|
||||
run: cat ".github/env" >> "$GITHUB_ENV"
|
||||
run: |
|
||||
set -euo pipefail
|
||||
cat ".github/env" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # pin@6.4.0
|
||||
with:
|
||||
go-version: '${{ env.GOLANG_VERSION }}'
|
||||
check-latest: true
|
||||
|
||||
- name: Run unit tests
|
||||
run: make test-coverage
|
||||
run: |
|
||||
set -euo pipefail
|
||||
make test-coverage
|
||||
|
||||
- name: Build Helm Binaries
|
||||
run: |
|
||||
set -eu -o pipefail
|
||||
|
||||
set -euo pipefail
|
||||
make build-cross VERSION="${{ github.ref_name }}"
|
||||
make dist checksum VERSION="${{ github.ref_name }}"
|
||||
|
||||
- name: Set latest version
|
||||
run: |
|
||||
set -eu -o pipefail
|
||||
set -euo pipefail
|
||||
|
||||
mkdir -p _dist_versions
|
||||
|
||||
|
|
@ -81,8 +92,9 @@ jobs:
|
|||
connection_string: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}
|
||||
|
||||
canary-release:
|
||||
runs-on: ubuntu-latest-16-cores
|
||||
if: github.ref == 'refs/heads/main' && github.repository == 'helm/helm'
|
||||
runs-on: ubuntu-latest-16-cores
|
||||
timeout-minutes: 45
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # pin@v6.0.2
|
||||
|
|
@ -90,7 +102,9 @@ jobs:
|
|||
fetch-depth: 0
|
||||
|
||||
- name: Add variables to environment file
|
||||
run: cat ".github/env" >> "$GITHUB_ENV"
|
||||
run: |
|
||||
set -euo pipefail
|
||||
cat ".github/env" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # pin@6.4.0
|
||||
|
|
@ -99,10 +113,13 @@ jobs:
|
|||
check-latest: true
|
||||
|
||||
- name: Run unit tests
|
||||
run: make test-coverage
|
||||
run: |
|
||||
set -euo pipefail
|
||||
make test-coverage
|
||||
|
||||
- name: Build Helm Binaries
|
||||
run: |
|
||||
set -euo pipefail
|
||||
make build-cross
|
||||
make dist checksum VERSION="canary"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue