-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (45 loc) · 1.22 KB
/
deploy-pipeline.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
name: Deploy Brcris-Nextjs
on:
push:
branches:
- main
env:
HOST_ELASTIC: ${{secrets.HOST_ELASTIC}}
API_KEY: ${{secrets.API_KEY}}
MAIL_HOST: ${{secrets.MAIL_HOST}}
MAIL_SENDER: ${{secrets.MAIL_SENDER}}
MAIL_PASSWORD: ${{secrets.MAIL_PASSWORD}}
MAIL_PORT: ${{secrets.MAIL_PORT}}
MAIL_RECIPIENT: ${{secrets.MAIL_RECIPIENT}}
RECAPTCHA_SECRET_KEY: ${{secrets.RECAPTCHA_SECRET_KEY}}
VIVO_URL_BASE: ${{secrets.VIVO_URL_BASE}}
VIVO_URL_ITEM_BASE: ${{secrets.VIVO_URL_ITEM_BASE}}
BRCRIS_HOST_BASE: ${{vars.BRCRIS_HOST_BASE}}
jobs:
test:
runs-on: [self-hosted, Linux, x64, runner-iroxa]
environment:
name: test
url: 'http://codich1.ibict.br:8086/'
steps:
- uses: actions/checkout@v3
- run: |
sh scripts/deploy.sh
homol:
runs-on: [self-hosted, Linux, x64, runner-homol]
environment:
name: homol
url: 'http://172.16.20.48:3000/'
steps:
- uses: actions/checkout@v3
- run: |
sh scripts/deploy.sh
prod:
runs-on: [self-hosted, Linux, x64, runner-pacova]
environment:
name: prod
url: 'https://brcris.ibict.br'
steps:
- uses: actions/checkout@v3
- run: |
sh scripts/deploy.sh