-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (42 loc) · 1.24 KB
/
xquare-cd-prod.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
name: DMS - xquare deployment prod
on:
push:
branches:
- main
jobs:
CD:
permissions:
id-token: write
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Build Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: |
build
--build-cache
--no-daemon
- name: Deploy to xquare
uses: team-xquare/xquare-deployment-action@master
with:
environment: prod
access_key: ${{ secrets.ACCESS_KEY }}
github_token: ${{ secrets.PAT }}
buildargs: |
PROFILE=prod
MYSQL_HOST=${{ secrets.MYSQL_HOST }}
MYSQL_USERNAME=${{ secrets.MYSQL_USERNAME }}
MYSQL_PASSWORD=${{ secrets.MYSQL_PASSWORD }}
REDIS_HOST=${{ secrets.REDIS_HOST }}
SENTRY_DSN=${{ secrets.SENTRY_DSN }}
AWS_ACCESS=${{ secrets.AWS_ACCESS }}
AWS_SECRET=${{ secrets.AWS_SECRET }}
NEIS_KEY=${{ secrets.NEIS_KEY }}
SES_SENDER=${{ secrets.SES_SENDER }}