File tree Expand file tree Collapse file tree 1 file changed +3
-32
lines changed Expand file tree Collapse file tree 1 file changed +3
-32
lines changed Original file line number Diff line number Diff line change 1
- name : GachonTable Dev Server CI/ CD Workflows
1
+ name : LUPG Prod Server CD Workflows
2
2
3
3
on :
4
4
push :
5
- branches : [ "develop " ]
5
+ branches : [ "main " ]
6
6
7
7
jobs :
8
8
deploy :
9
9
runs-on : ubuntu-latest
10
10
11
11
steps :
12
- - name : Checkout Code
13
- uses : actions/checkout@v3
14
-
15
- - name : Set up JDK 17
16
- uses : actions/setup-java@v3
17
- with :
18
- distribution : ' corretto'
19
- java-version : ' 17'
20
-
21
- - name : Grant permission for gradlew
22
- run : chmod +x ./gradlew
23
- shell : bash
24
-
25
- - name : Build with Gradle
26
- run : ./gradlew build -x test
27
-
28
- # Docker Hub 로그인
29
- - name : Log in to Docker Hub
30
- uses : docker/login-action@v3
31
- with :
32
- username : ${{ secrets.DOCKER_USERNAME }}
33
- password : ${{ secrets.DOCKER_ACCESS_TOKEN }}
34
-
35
- # Docker 이미지 빌드 및 푸시
36
- - name : Build and push Docker image
37
- run : |
38
- docker build -t ${{ secrets.DOCKER_USERNAME }}/gachontable:latest -f Dockerfile-dev .
39
- docker push ${{ secrets.DOCKER_USERNAME }}/gachontable:latest
40
-
41
12
# Docker Deploy
42
13
- name : Docker Deploy
43
14
uses : appleboy/ssh-action@master
61
32
62
33
sudo docker rm $(sudo docker ps --filter 'status=exited' -a -q)
63
34
sudo docker run -d -v /home/ubuntu/pinpoint-agent-2.5.3:/pinpoint-agent --log-driver=syslog --name lupg -p 8080:8080 -p 63544:63544 -e JAVA_OPTS=-Djasypt.encryptor.password=${{secrets.JASYPT_ENCRYPTOR_PASSWORD}} ${{secrets.DOCKER_USERNAME}}/gachontable:latest
64
- sudo docker image prune -a -f
35
+ sudo docker image prune -a -f
You can’t perform that action at this time.
0 commit comments