Skip to content

Commit

Permalink
Convert remaining CircleCI config to GitHub Actions
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Rigby <scott@r6by.com>
  • Loading branch information
scottrigby committed Feb 21, 2023
1 parent 35e77cc commit 131f6f3
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 148 deletions.
20 changes: 0 additions & 20 deletions .circleci/bootstrap.sh

This file was deleted.

43 changes: 0 additions & 43 deletions .circleci/config.yml

This file was deleted.

53 changes: 0 additions & 53 deletions .circleci/deploy.sh

This file was deleted.

33 changes: 2 additions & 31 deletions .github/workflows/build-pr.yml
Expand Up @@ -3,9 +3,7 @@ on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -31,31 +29,4 @@ jobs:
- name: Run unit tests
run: make test-coverage
- name: Test build
run: make

canary-release:
runs-on: ubuntu-latest
needs: build
if: ${{ github.event == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'helm' }}
steps:
- name: Checkout source code
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # pin@v3.2.0

- name: Setup Go
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # pin@3.5.0
with:
go-version-file: go.mod

- name: Build Helm Binaries
run: |
make build-cross
make dist checksum VERSION="canary"
- name: Upload Binaries
uses: bacongobbler/azure-blob-storage-upload@50f7d898b7697e864130ea04c303ca38b5751c50 # pin@3.0.0
with:
source_dir: _dist
container_name: ${{ secrets.AZURE_STORAGE_CONTAINER_NAME }}
connection_string: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}
extra_args: '--pattern helm-*'
overwrite: 'true'
run: make test build
32 changes: 31 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -3,10 +3,13 @@ on:
create:
tags:
- v*
push:
branches:
- main

jobs:
release:
if: ${{ github.repository_owner == 'helm'}}
if: ${{ startsWith(github.ref, 'refs/tags/v') && github.repository_owner == 'helm' }}
runs-on: ubuntu-latest
steps:
- name: Checkout source code
Expand Down Expand Up @@ -36,3 +39,30 @@ jobs:
container_name: ${{ secrets.AZURE_STORAGE_CONTAINER_NAME }}
connection_string: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}
extra_args: '--pattern helm-*'

canary-release:
runs-on: ubuntu-latest
needs: build
if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'helm' }}
steps:
- name: Checkout source code
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # pin@v3.2.0

- name: Setup Go
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # pin@3.5.0
with:
go-version-file: go.mod

- name: Build Helm Binaries
run: |
make build-cross
make dist checksum VERSION="canary"
- name: Upload Binaries
uses: bacongobbler/azure-blob-storage-upload@50f7d898b7697e864130ea04c303ca38b5751c50 # pin@3.0.0
with:
source_dir: _dist
container_name: ${{ secrets.AZURE_STORAGE_CONTAINER_NAME }}
connection_string: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}
extra_args: '--pattern helm-*'
overwrite: 'true'

0 comments on commit 131f6f3

Please sign in to comment.