forked from PoolC/Mincho
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/PoolC/Palkia into dev
- Loading branch information
Showing
3 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,6 @@ name: Java CI with Gradle | |
on: | ||
push: | ||
branches: [ "dev" ] | ||
pull_request: | ||
branches: [ "dev" ] | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -36,29 +34,28 @@ jobs: | |
# arguments: build | ||
run: ./gradlew clean build --exclude-task test | ||
- name: make directory for transfer | ||
run: mkdir deploy | ||
run: mkdir palkia | ||
- name: Copy Jar | ||
run: cp ./build/libs/*.jar ./deploy/ | ||
run: cp ./build/libs/*.jar ./palkia/ | ||
- name: copy file via ssh password | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.DEV_HOST }} | ||
username: ${{ secrets.SERVER_USER }} | ||
password: ${{ secrets.SSH_PASSWORD }} | ||
username: ${{ secrets.DEV_USER }} | ||
password: ${{ secrets.DEV_PASSWORD }} | ||
key: ${{ secrets.DEV_KEY }} | ||
port: ${{ secrets.SSH_PORT }} | ||
source: "./palkia/*.jar" | ||
target: /home/jimmy/k8s/ | ||
- name: restart server | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.DEV_HOST }} | ||
username: ${{ secrets.DEV_USER }} | ||
password: ${{ secrets.DEV_PASSWORD }} | ||
key: ${{ secrets.DEV_KEY }} | ||
port: ${{ secrets.SSH_PORT }} | ||
source: "./build/libs/*.jar" | ||
target: /home/ubuntu/palkiabuilds/ | ||
# - name: restart server | ||
# uses: appleboy/[email protected] | ||
# with: | ||
# host: ${{ secrets.SERVER_HOST }} | ||
# username: ${{ secrets.SERVER_USER }} | ||
# password: ${{ secrets.SSH_PASSWORD }} | ||
# key: ${{ secrets.KEY }} | ||
# port: ${{ secrets.SSH_PORT }} | ||
# script: | | ||
# cd dockercompose/palkia | ||
# docker compose down | ||
# docker compose up -d --build | ||
|
||
script: | | ||
kubectl delete deployment palkia-deployment | ||
kubectl apply -f ./k8s/palkia-deployment.yaml | ||
kubectl rollout status deployment/palkia-deployment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,3 +67,5 @@ compiler(`⌘,` > `Build, Execution, Deployment` > `Compiler` > `Java Compiler` | |
### Deploy | ||
|
||
TODO with docker | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters