Skip to content

Commit

Permalink
Merge pull request #169 from makevook/develop
Browse files Browse the repository at this point in the history
release 병합
  • Loading branch information
seungyeop-lee committed Jul 22, 2024
2 parents ae4964c + 87ff9e4 commit ed7a40b
Show file tree
Hide file tree
Showing 256 changed files with 1,811 additions and 785 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ on:
push:
branches:
- develop
paths:
- "server/**"

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Deploy
uses: dagger/dagger-for-github@v5
env:
Expand All @@ -23,7 +27,7 @@ jobs:
module: ./cicd
args: >-
deploy
--source-dir=api
--source-dir=server
--profile=dev
--ssh-dest=env:SSH_DEST
--ssh-key=env:SSH_KEY
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ on:
push:
branches:
- main
paths:
- "server/**"

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Deploy
uses: dagger/dagger-for-github@v5
env:
Expand All @@ -23,7 +27,7 @@ jobs:
module: ./cicd
args: >-
deploy
--source-dir=api
--source-dir=server
--profile=prod
--ssh-dest=env:SSH_DEST
--ssh-key=env:SSH_KEY
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/deploy-stag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ on:
push:
branches:
- release
paths:
- "server/**"

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Deploy
uses: dagger/dagger-for-github@v5
env:
Expand All @@ -23,7 +27,7 @@ jobs:
module: ./cicd
args: >-
deploy
--source-dir=api
--source-dir=server
--profile=stag
--ssh-dest=env:SSH_DEST
--ssh-key=env:SSH_KEY
Expand Down
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "devenv/sql"]
path = devenv/sql
url = git@github.com:makevook/vook-sql.git
[submodule "api/src/test/resources/migrate/sql"]
path = api/src/test/resources/migrate/sql
url = git@github.com:makevook/vook-sql.git
[submodule "server/api/src/test/resources/migrate/sql"]
path = server/api/src/test/resources/migrate/sql
url = git@github.com:makevook/vook-sql.git
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.PHONY:sql-update
sql-update:
git submodule update --remote --merge
1 change: 0 additions & 1 deletion api/settings.gradle

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

8 changes: 4 additions & 4 deletions cicd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ VERSION := $(shell git describe --tags --always --dirty)
.PHONY:deploy-dev
deploy-dev:
dagger call -v deploy \
--source-dir=../api \
--source-dir=../server \
--profile=dev \
--ssh-dest=file:./secrets/dev/dest.txt \
--ssh-key=file:./secrets/dev/ssh.key \
Expand All @@ -14,7 +14,7 @@ deploy-dev:
.PHONY:deploy-stag
deploy-stag:
dagger call -v deploy \
--source-dir=../api \
--source-dir=../server \
--profile=stag \
--ssh-dest=file:./secrets/stag/dest.txt \
--ssh-key=file:./secrets/stag/ssh.key \
Expand All @@ -25,7 +25,7 @@ deploy-stag:
.PHONY:deploy-prod
deploy-prod:
dagger call -v deploy \
--source-dir=../api \
--source-dir=../server \
--profile=prod \
--ssh-dest=file:./secrets/prod/dest.txt \
--ssh-key=file:./secrets/prod/ssh.key \
Expand All @@ -35,7 +35,7 @@ deploy-prod:

.PHONY:build-jar
build-jar:
dagger call -v build-api-jar --dir=../api --test export --path out/api.jar
dagger call -v build-api-jar --dir=../server --test --sub-module=api export --path out/api.jar

.PHONY:build-image
build-image: build-jar
Expand Down
Loading

0 comments on commit ed7a40b

Please sign in to comment.