-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 1013 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Publish image
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Docker login
run: docker login docker.pkg.github.com -u bastiaanv -p ${{ secrets.GITHUB_TOKEN }}
- name: Build the Docker image
run: docker build . -f Dockerfile -t docker.pkg.github.com/federation-purple-study-associations/fpsa-cron-database-backup/cronjob:${{github.sha}}
- name: Publish image
run: docker push docker.pkg.github.com/federation-purple-study-associations/fpsa-cron-database-backup/cronjob:${{github.sha}}
- name: Deploy
uses: elseu/[email protected]
with:
release: 'fpsa-backup'
namespace: 'fpsa'
chart: 'chart'
helm: 'helm3'
timeout: 2m30s
token: '${{ github.token }}'
values: |
tag: '${{ github.sha }}'
env:
KUBECONFIG_FILE: '${{ secrets.KUBECONFIG }}'