-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (61 loc) · 1.86 KB
/
deploy-main.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
name: Deploy to cloudtype
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Connect deploy key
uses: cloudtype-github-actions/connect@v1
with:
token: ${{ secrets.CLOUDTYPE_TOKEN }}
ghtoken: ${{ secrets.GHP_TOKEN }}
- name: Deploy
uses: cloudtype-github-actions/deploy@v1
with:
token: ${{ secrets.CLOUDTYPE_TOKEN }}
project: sungwon-097/ref
stage: main
yaml: |
name: ref-monolithic-server
app: java@17
options:
ports: 8080
env:
- name: SPRING_PROFILES_ACTIVE
value: prod
- name: DRIVER_CLASS_NAME
value: org.mariadb.jdbc.Driver
- name: DB
value: mariadb
- name: HOST
value: svc.sel4.cloudtype.app
- name: PORT
value: "30810"
- name: NAME
value: ref
- name: USERNAME
value: root
- name: PASSWORD
value: refmariadb!@#
- name: DDL_AUTO
value: update
- name: DATABASE-PLATFORM
value: org.hibernate.dialect.MariaDBDialect
- name: JWT_SECRET
value: 65536refref!@#
- name: EXPIRED_TIME
value: "3600000"
- name: TOKEN_PREFIX
value: Authorization
- name: HEADER_STRING
value: Bearer
context:
git:
url: [email protected]:${{ github.repository }}.git
ref: ${{ github.ref }}
preset: java-springboot