-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.84 KB
/
deploy.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
name: deploy dashboard
on:
push:
branches: [ "master" ]
jobs:
# check-code:
# runs-on: [self-hosted, linux]
# steps:
# - uses: actions/checkout@master
# - run: |
# export PATH=$PATH:/opt/gradle/gradle-8.1.1/bin
# echo $PATH
# gradle -v
# gradle --stacktrace sonar \
# -Dsonar.projectKey=dashboard \
# -Dsonar.projectName='dashboard' \
# -Dsonar.host.url=http://192.168.0.202:9000 \
# -Dsonar.token=sqp_ae9abc486797b516f685843f5b9575e048ccaba4
build-dashboard:
#needs: check-code
runs-on: [app]
steps:
- uses: actions/checkout@master
- run: |
docker login -u daria -p 7HlUyiSD https://registry.dariasystem.com
docker build -t registry.dariasystem.com/gamein/dashboard:dev .
docker push registry.dariasystem.com/gamein/dashboard:dev
deploy-dashboard:
needs: build-dashboard
runs-on: [app]
steps:
- uses: actions/checkout@master
- run: |
docker login -u daria -p 7HlUyiSD https://registry.dariasystem.com
docker pull registry.dariasystem.com/gamein/dashboard:dev
docker rm -f dashboard
docker-compose up -d dashboard
sleep 10
docker compose ps
# deploy-dashboard-1:
# needs: build-dashboard
# runs-on: [app-1]
# steps:
# - uses: actions/checkout@master
# - run: |
# docker login -u daria -p 7HlUyiSD https://registry.dariasystem.com
# docker pull registry.dariasystem.com/gamein/dashboard:dev
# docker rm -f dashboard-1
# docker compose up -d dashboard-1
# sleep 10
# docker compose ps