-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'helm:main' into fixDepUpPerformance
- Loading branch information
Showing
344 changed files
with
9,061 additions
and
2,325 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 1,14 @@ | ||
--- | ||
|
||
# This file can be removed when Helm no longer uses CircleCI on any release | ||
# branches. Once CircleCI is turned off this file can be removed. | ||
version: 2 | ||
|
||
jobs: | ||
build: | ||
working_directory: ~/helm.sh/helm | ||
docker: | ||
- image: cimg/go:1.18 | ||
|
||
auth: | ||
username: $DOCKER_USER | ||
password: $DOCKER_PASS | ||
|
||
environment: | ||
GOCACHE: "/tmp/go/cache" | ||
GOLANGCI_LINT_VERSION: "1.46.2" | ||
|
||
steps: | ||
- checkout | ||
- run: | ||
name: install test dependencies | ||
command: .circleci/bootstrap.sh | ||
- run: | ||
name: test style | ||
command: make test-style | ||
- run: | ||
name: test | ||
command: make test-coverage | ||
- run: | ||
name: test build | ||
command: make | ||
- deploy: | ||
name: deploy | ||
command: .circleci/deploy.sh | ||
|
||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- build: | ||
filters: | ||
tags: | ||
only: /.*/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,26 @@ | ||
name: build-test | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'release-**' | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # [email protected] | ||
- name: Setup Go | ||
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # [email protected] | ||
with: | ||
go-version: '1.21' | ||
- name: Test source headers are present | ||
run: make test-source-headers | ||
- name: Run unit tests | ||
run: make test-coverage | ||
- name: Test build | ||
run: make build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,11 35,11 @@ jobs: | |
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # [email protected] | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
uses: github/codeql-action/init@4355270be187e1b672a7a1c7c7bae5afdc1ab94a # pinv3.24.10 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
|
@@ -50,7 50,7 @@ jobs: | |
# Autobuild attempts to build any compiled languages (C/C , C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v1 | ||
uses: github/codeql-action/autobuild@4355270be187e1b672a7a1c7c7bae5afdc1ab94a # pinv3.24.10 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 https://git.io/JvXDl | ||
|
@@ -64,4 64,4 @@ jobs: | |
# make release | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 | ||
uses: github/codeql-action/analyze@4355270be187e1b672a7a1c7c7bae5afdc1ab94a # pinv3.24.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,22 @@ | ||
name: golangci-lint | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
golangci: | ||
name: golangci-lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # [email protected] | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # [email protected] | ||
with: | ||
go-version: "1.21" | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 #[email protected] | ||
with: | ||
version: v1.55 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,102 @@ | ||
name: release | ||
on: | ||
create: | ||
tags: | ||
- v* | ||
push: | ||
branches: | ||
- main | ||
|
||
# Note the only differences between release and canary-release jobs are: | ||
# - only canary passes --overwrite flag | ||
# - the VERSION make variable passed to 'make dist checksum' is expected to | ||
# be "canary" if the job is triggered by a push to "main" branch. If the | ||
# job is triggered by a tag push, VERSION should be the tag ref. | ||
jobs: | ||
release: | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # [email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # [email protected] | ||
with: | ||
go-version: '1.21' | ||
|
||
- name: Run unit tests | ||
run: make test-coverage | ||
|
||
- name: Build Helm Binaries | ||
run: | | ||
set -eu -o pipefail | ||
make build-cross | ||
make dist checksum VERSION="${{ github.ref_name }}" | ||
- name: Set latest version | ||
run: | | ||
set -eu -o pipefail | ||
mkdir -p _dist_versions | ||
# Push the latest semver tag, excluding prerelease tags | ||
LATEST_VERSION="$(git tag | sort -r --version-sort | grep '^v[0-9]' | grep -v '-' | head -n1)" | ||
echo "LATEST_VERSION=${LATEST_VERSION}" | ||
echo "${LATEST_VERSION}" > _dist_versions/helm-latest-version | ||
echo "${LATEST_VERSION}" > _dist_versions/helm3-latest-version | ||
- name: Upload Binaries | ||
uses: bacongobbler/azure-blob-storage-upload@50f7d898b7697e864130ea04c303ca38b5751c50 # [email protected] | ||
env: | ||
AZURE_STORAGE_CONNECTION_STRING: "${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}" | ||
AZURE_STORAGE_CONTAINER_NAME: "${{ secrets.AZURE_STORAGE_CONTAINER_NAME }}" | ||
with: | ||
source_dir: _dist | ||
container_name: ${{ secrets.AZURE_STORAGE_CONTAINER_NAME }} | ||
connection_string: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }} | ||
extra_args: '--pattern helm-*' | ||
|
||
- name: Upload Version tag files | ||
uses: bacongobbler/azure-blob-storage-upload@50f7d898b7697e864130ea04c303ca38b5751c50 # [email protected] | ||
env: | ||
AZURE_STORAGE_CONNECTION_STRING: "${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}" | ||
AZURE_STORAGE_CONTAINER_NAME: "${{ secrets.AZURE_STORAGE_CONTAINER_NAME }}" | ||
with: | ||
overwrite: 'true' | ||
source_dir: _dist_versions | ||
container_name: ${{ secrets.AZURE_STORAGE_CONTAINER_NAME }} | ||
connection_string: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }} | ||
|
||
canary-release: | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/main' | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # [email protected] | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # [email protected] | ||
with: | ||
go-version: '1.21' | ||
|
||
- name: Run unit tests | ||
run: make test-coverage | ||
|
||
- name: Build Helm Binaries | ||
run: | | ||
make build-cross | ||
make dist checksum VERSION="canary" | ||
- name: Upload Binaries | ||
uses: bacongobbler/azure-blob-storage-upload@50f7d898b7697e864130ea04c303ca38b5751c50 # [email protected] | ||
with: | ||
source_dir: _dist | ||
container_name: ${{ secrets.AZURE_STORAGE_CONTAINER_NAME }} | ||
connection_string: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }} | ||
extra_args: '--pattern helm-*' | ||
# WARNING: this will overwrite existing blobs in your blob storage | ||
overwrite: 'true' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.