-
Notifications
You must be signed in to change notification settings - Fork 16
55 lines (48 loc) · 1.27 KB
/
publish-and-deploy.yaml
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
49
50
51
52
53
54
55
name: Publish and Deploy
# Combined these two workflows for visbility
on:
push:
branches: [ main ]
workflow_dispatch:
branches:
- main
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# Dev and Prod use the same image
push_to_registry_prod:
name: Push to prod
uses: ./.github/workflows/build-push-image.yaml
with:
environment: prod
image_tag: willnilges/meshdb:main
secrets: inherit
if: github.ref == 'refs/heads/main'
# deploy_to_dev3:
# name: Deploy to dev 3
# uses: ./.github/workflows/deploy-to-k8s.yaml
# with:
# environment: dev3
# useTag: main
# secrets: inherit
# needs: push_to_registry_prod
# if: github.ref == 'refs/heads/main'
# integration_test_dev3:
# name: Integration test dev 3
# uses: ./.github/workflows/run-integ-tests.yaml
# with:
# environment: dev3
# secrets: inherit
# needs: deploy_to_dev3
# if: github.ref == 'refs/heads/main'
deploy_to_prod2:
name: Deploy to prod2
uses: ./.github/workflows/deploy-to-k8s.yaml
with:
environment: prod2
useTag: main
secrets: inherit
# needs: integration_test_dev3
if: github.ref == 'refs/heads/main'