Skip to content

Commit 1654ea8

Browse files
authored
Create helm-publish.yml
1 parent 9a8381b commit 1654ea8

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/helm-publish.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Relase & Helm Upgrade
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
12+
build:
13+
14+
name: Build Docker Image
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Docker Login
22+
uses: docker/login-action@v1
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Build & push container
29+
uses: docker/build-push-action@v2
30+
with:
31+
context: .
32+
file: ./Dockerfile
33+
push: true
34+
tags: ghcr.io/scai-bio/tsnepad/tsnepad:${{ github.event.release.tag_name }}
35+
36+
deploy:
37+
38+
name: Update k8s deployment
39+
runs-on: ubuntu-latest
40+
41+
steps:
42+
43+
- name: Set up kubectl
44+
uses: azure/k8s-set-context@v1
45+
with:
46+
kubeconfig: ${{ secrets.KUBE_CONFIG_DATA }}
47+
48+
- name: Helm Upgrade
49+
uses: azure/helm-install@v1
50+
with:
51+
release-name: tsnepad
52+
namespace: bio
53+
values: version=${{ github.event.release.tag_name }}
54+
55+

0 commit comments

Comments
 (0)