-
Notifications
You must be signed in to change notification settings - Fork 17
40 lines (38 loc) · 1.06 KB
/
publish.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
40
name: Publish
on:
release:
types: [published]
jobs:
push-docker-image:
runs-on: ubuntu-20.04
steps:
- name: Check the repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Docker login
run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
- name : push to Docker Hub
run: make build-image image-push
push-artifact-hub:
runs-on: ubuntu-20.04
steps:
- name: Check the repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: azure/setup-helm@v3
with:
version: v3.10.1
- name: Docker login
run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
env:
DOCKER_USER: ${{secrets.DOCKER_USER_HELM}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD_HELM}}
- name : push to Artifact Hub
run: make helm-push
env:
DOCKER_USER: ${{secrets.DOCKER_USER_HELM}}