forked from protofire/safe-react-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.62 KB
/
deployment.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: CI Template
on:
push:
branches: [ protofire-prd, protofire-stg ]
workflow_dispatch:
jobs:
call-workflow-init:
uses: DistributedCollective/.github/.github/workflows/init.yml@master
with:
ref: ${{ github.ref }}
base_ref: ${{ github.base_ref }}
call-workflow-docker-build:
uses: DistributedCollective/.github/.github/workflows/docker.yml@master
needs: [call-workflow-init]
with:
KUBE_NAMESPACE: ${{ needs.call-workflow-init.outputs.KUBE_NAMESPACE }}
IMAGE_NAME: ${{ needs.call-workflow-init.outputs.image_name }}
event_name: ${{ github.event_name }}
registry: ${{ needs.call-workflow-init.outputs.registry }}
dockerfile_path: ${{ needs.call-workflow-init.outputs.dockerfile_path }}
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
call-workflow-k8s-deploy:
uses: DistributedCollective/.github/.github/workflows/deploy-k8s.yml@master
needs: [call-workflow-init, call-workflow-docker-build]
if: github.event_name != 'pull_request'
with:
KUBE_NAMESPACE: ${{ needs.call-workflow-init.outputs.KUBE_NAMESPACE }}
IMAGE_NAME: ${{ needs.call-workflow-init.outputs.image_name }}
ci_env: ${{ needs.call-workflow-init.outputs.ci_env }}
aws_region: ${{ needs.call-workflow-init.outputs.aws_region }}
k8s_cluster_name: ${{ needs.call-workflow-init.outputs.k8s_cluster_name }}
app_name: ${{ needs.call-workflow-init.outputs.app_name }}
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}