-
Notifications
You must be signed in to change notification settings - Fork 41
76 lines (63 loc) · 2.44 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build-and-push-core-admin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
docker build -t techno-event-core-admin -f apps/core-admin/Dockerfile .
- run: |
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }}
- run: |
docker tag techno-event-core-admin ${{ secrets.DOCKER_USER }}/techno-event-core-admin:latest
docker push ${{ secrets.DOCKER_USER }}/techno-event-core-admin:latest
redeploy-core-admin:
needs: build-and-push-core-admin
runs-on: ubuntu-latest
steps:
- name: Call deploy hook
run: |
curl -X GET ${{ secrets.DEV_CORE_ADMIN_DEPLOY_HOOK }}
curl -X GET ${{ secrets.PROD_CORE_ADMIN_DEPLOY_HOOK }}
build-and-push-core-mailer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
docker build -t techno-event-core-mailer -f apps/core-mailer/Dockerfile .
- run: |
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }}
- run: |
docker tag techno-event-core-mailer ${{ secrets.DOCKER_USER }}/techno-event-core-mailer:latest
docker push ${{ secrets.DOCKER_USER }}/techno-event-core-mailer:latest
redeploy-core-mailer:
needs: build-and-push-core-mailer
runs-on: ubuntu-latest
steps:
- name: Call deploy hook
run: |
curl -X GET ${{ secrets.DEV_CORE_MAILER_DEPLOY_HOOK }}
curl -X GET ${{ secrets.PROD_CORE_MAILER_DEPLOY_HOOK }}
build-and-push-core-auth0-actions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
docker build -t techno-event-core-auth0-actions -f apps/core-auth0-actions/Dockerfile .
- run: |
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }}
- run: |
docker tag techno-event-core-auth0-actions ${{ secrets.DOCKER_USER }}/techno-event-core-auth0-actions:latest
docker push ${{ secrets.DOCKER_USER }}/techno-event-core-auth0-actions:latest
redeploy-core-auth0-actions:
needs: build-and-push-core-auth0-actions
runs-on: ubuntu-latest
steps:
- name: Call deploy hook
run: |
curl -X GET ${{ secrets.DEV_CORE_AUTH0_ACTIONS_DEPLOY_HOOK }}
curl -X GET ${{ secrets.PROD_CORE_AUTH0_ACTIONS_DEPLOY_HOOK }}