-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: CI pipeline using GitHub actions
Removed google cloud build in favour of actions. Add tests for helm charts with this. Removes pulling from google cloud build which is not documented anymore by actions.
- Loading branch information
Showing
7 changed files
with
69 additions
and
37 deletions.
There are no files selected for viewing
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,60 @@ | ||
name: 'Test' | ||
on: ['push'] | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: 'ubuntu-latest' | ||
|
||
steps: | ||
- uses: 'actions/checkout@v1' | ||
|
||
- name: 'Docker Build' | ||
run: 'docker build .' | ||
|
||
deployment: | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- name: 'Checkout' | ||
uses: 'actions/checkout@v1' | ||
|
||
- name: 'Deploy Canary' | ||
uses: 'deliverybot/helm@ci-v2' | ||
with: | ||
helm: helm3 | ||
token: '${{ github.token }}' | ||
secrets: '${{ toJSON(secrets) }}' | ||
chart: 'app' | ||
namespace: production | ||
release: production-myapp | ||
version: '${{ github.sha }}' | ||
track: canary | ||
value-files: '["./tests/values.yml"]' | ||
values: | | ||
replicaCount: 1 | ||
image: | ||
repository: nginx | ||
tag: latest | ||
env: | ||
KUBECONFIG_FILE: '${{ secrets.KUBECONFIG }}' | ||
|
||
- name: 'Deploy Production' | ||
uses: 'deliverybot/helm@ci-v2' | ||
with: | ||
helm: helm3 | ||
token: '${{ github.token }}' | ||
secrets: '${{ toJSON(secrets) }}' | ||
chart: 'app' | ||
namespace: production | ||
release: production-myapp | ||
version: '${{ github.sha }}' | ||
track: stable | ||
value-files: '["./tests/values.yml"]' | ||
remove-canary: "true" | ||
values: | | ||
replicaCount: 5 | ||
image: | ||
repository: nginx | ||
tag: latest | ||
env: | ||
KUBECONFIG_FILE: '${{ secrets.KUBECONFIG }}' |
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 |
---|---|---|
|
@@ -28,4 +28,4 @@ inputs: | |
JSON encoded map. | ||
runs: | ||
using: docker | ||
image: docker://gcr.io/deliverybot/helm:v1.0.0 | ||
image: Dockerfile |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 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,7 @@ | ||
env: | ||
- name: ENVIRONMENT | ||
value: production | ||
|
||
secrets: | ||
- name: API_KEY | ||
value: '${{ secrets.API_KEY }}' |