-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.37 KB
/
deploy-dev.yml
File metadata and controls
49 lines (42 loc) · 1.37 KB
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
name: Test, compile and push client and server to production
on:
push:
branches: ["dev"]
workflow_dispatch:
jobs:
test-client:
uses: WildCodeSchool/2023-11-wns-bleu-g3/.github/workflows/tests-front.yml@dev
e2e-tests:
uses: WildCodeSchool/2023-11-wns-bleu-g3/.github/workflows/e2e.yml@dev
integration-tests:
uses: WildCodeSchool/2023-11-wns-bleu-g3/.github/workflows/integration-tests.yml@dev
build-and-push-server:
needs:
- integration-tests
- e2e-tests
uses: WildCodeSchool/2023-11-wns-bleu-g3/.github/workflows/build-backend.yml@dev
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
with:
image_name: greenfoot/greenfoot-back-dev
build-and-push-client:
needs:
- test-client
- e2e-tests
uses: WildCodeSchool/2023-11-wns-bleu-g3/.github/workflows/build-frontend.yml@dev
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
with:
image_name: greenfoot/greenfoot-front-dev
notify-vps:
needs:
- build-and-push-client
- build-and-push-server
runs-on: ubuntu-latest
steps:
- name: Call VPS webhook to update dev
uses: wei/curl@master
with:
args: https://ops.1123-bleu-3.wns.wilders.dev/hooks/update-dev