Skip to content

Commit

Permalink
Create helm-upgrade.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tiadams authored Dec 8, 2023
1 parent 72a4941 commit 6d18945
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/helm-upgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Realse & Upgrade


on:
release:
types: [published]

jobs:

build:

name: Build Docker Image
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Docker Login
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build & push container
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/scai-bio/helm-upgrade-actions/hello-world:${{ github.event.release.tag_name }}

deploy:

name: Update k8s deployment
runs-on: ubuntu-latest
needs: build

steps:
- name: helm-deploy
uses: WyriHaximus/[email protected]
with:
exec: helm upgrade hello-world --namespace=bio --set=ui.version=${{ github.event.release.tag_name }}
kubeconfig: '${{ secrets.KUBECONFIG }}'

0 comments on commit 6d18945

Please sign in to comment.