Skip to content

Commit

Permalink
Create helm-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tiadams committed Dec 8, 2023
1 parent 9a8381b commit 1654ea8
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/helm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Relase & Helm Upgrade

on:
release:
types: [published]

permissions:
contents: read

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/tsnepad/tsnepad:${{ github.event.release.tag_name }}

deploy:

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

steps:

- name: Set up kubectl
uses: azure/k8s-set-context@v1
with:
kubeconfig: ${{ secrets.KUBE_CONFIG_DATA }}

- name: Helm Upgrade
uses: azure/helm-install@v1
with:
release-name: tsnepad
namespace: bio
values: version=${{ github.event.release.tag_name }}


0 comments on commit 1654ea8

Please sign in to comment.