Skip to content

Commit 5be3d78

Browse files
committed
ci: cloudtype
1 parent ff97a6f commit 5be3d78

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

.env.example

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
DB_HOST=string
2+
DB_PORT=number
3+
DB_NAME=string
4+
DB_USERNAME=string
5+
DB_PASSWORD=string
6+
7+
JWT_SECRET=string
8+
9+
BUCKET_NAME=string
10+
S3_REGION=string
11+
S3_ACCESS_KEY=string
12+
S3_SECRET_KEY=string

.github/workflows/cd.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Deploy to cloudtype
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Connect deploy key
13+
uses: cloudtype-github-actions/connect@v1
14+
with:
15+
token: ${{ secrets.CLOUDTYPE_TOKEN }}
16+
ghtoken: ${{ secrets.GHP_TOKEN }}
17+
- name: Deploy
18+
uses: cloudtype-github-actions/deploy@v1
19+
with:
20+
token: ${{ secrets.CLOUDTYPE_TOKEN }}
21+
project: gimhanul/sickseek
22+
stage: main
23+
yaml: |
24+
name: qrc
25+
app: java@8
26+
options:
27+
ports: 8080
28+
context:
29+
git:
30+
url: [email protected]:${{ github.repository }}.git
31+
ref: ${{ github.ref }}
32+
- name: DB_NAME
33+
value: ${{ secrets.DB_NAME }}
34+
- name: TZ
35+
value: Asia/Seoul
36+
- name: DB_USERNAME
37+
value: ${{ secrets.DB_USERNAME }}
38+
- name: DB_PASSWORD
39+
value: ${{ secrets.DB_PASSWORD }}
40+
- name: DB_HOST
41+
value: ${{ secrets.DB_HOST }}
42+
- name: DB_PORT
43+
value: ${{ secrets.DB_PORT }}
44+
- name: SPRING_PROFILES_ACTIVE
45+
value: prod
46+
context:
47+
git:
48+
url: [email protected]:${{ github.repository }}.git
49+
ref: ${{ github.ref }}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.DS_Store
2+
.env
13
HELP.md
24
.gradle
35
build/

0 commit comments

Comments
 (0)