-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (48 loc) · 1.2 KB
/
docker-build-push.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
41
42
43
44
45
46
47
48
name: Build and Deploy
on:
push:
branches:
- dev
- main
tags:
- v*
jobs:
build:
uses: NaturalSelectionLabs/Daedalus/.github/workflows/docker-tpl.yaml@main
with:
images: flosspicks/xchar
context: .
dockerfile: ./Dockerfile
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
deploy-dev:
if: github.ref == 'refs/heads/dev'
uses: NaturalSelectionLabs/Daedalus/.github/workflows/deploy-v3-tpl.yaml@main
needs:
- build
with:
images: flosspicks/xchar
tag: sha-${{ github.sha }}
cluster: dev
namespace: crossbell
releaseName: xchar
revision: dev
dir: deploy/dev
secrets:
ARGOCD_TOKEN: ${{ secrets.ARGOCD_TOKEN }}
deploy-prod:
if: github.ref == 'refs/heads/main'
uses: NaturalSelectionLabs/Daedalus/.github/workflows/deploy-v3-tpl.yaml@main
needs:
- build
with:
images: flosspicks/xchar
tag: sha-${{ github.sha }}
cluster: prod
namespace: crossbell
releaseName: xchar
revision: main
dir: deploy/prod
secrets:
ARGOCD_TOKEN: ${{ secrets.ARGOCD_TOKEN }}