From 0b41c9ac31d99a2793f00f07ad9e90ae59b38c2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=8F=84=EA=B2=BD?= <125863754+rudeh2926@users.noreply.github.com> Date: Sat, 10 Feb 2024 20:08:08 +0900 Subject: [PATCH 1/4] Create git-action.yml --- .github/workflows/git-action.yml | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/git-action.yml diff --git a/.github/workflows/git-action.yml b/.github/workflows/git-action.yml new file mode 100644 index 0000000..a878023 --- /dev/null +++ b/.github/workflows/git-action.yml @@ -0,0 +1,43 @@ +name: gradle-pick + +on: + push: + branches: [ "main" ] + +jobs: + build: + permissions: + id-token: write + contents: read + runs-on: ubuntu-latest + services: + redis: + image: redis + ports: + - 6379:6379 + + steps: + - uses: actions/checkout@v3 + + - name: Set up Java + uses: actions/setup-java@v2 + with: + java-version: '17' + distribution: 'temurin' + + - 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.XQUARE_ACCESS_KEY }} + github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + buildargs: | + PROFILE=prod From f2fa35bd157d9fa2923e04a1492505ed29e40e90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=8F=84=EA=B2=BD?= Date: Sat, 10 Feb 2024 20:10:11 +0900 Subject: [PATCH 2/4] add :: dockerfile --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bfb2473 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM openjdk:17-jdk + +ARG PROFILE +ENV PROFILE ${PROFILE} + +ARG JAR_FILE=./build/libs/*.jar +COPY ${JAR_FILE} application.jar + +EXPOSE 8080 +ENTRYPOINT ["java", "-jar", "application.jar"] From 9399ac43b38e7ae1c84c9e167ed913190c2d79d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=8F=84=EA=B2=BD?= Date: Sat, 10 Feb 2024 20:16:15 +0900 Subject: [PATCH 3/4] add :: config --- .xquare/config.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .xquare/config.yml diff --git a/.xquare/config.yml b/.xquare/config.yml new file mode 100644 index 0000000..063b164 --- /dev/null +++ b/.xquare/config.yml @@ -0,0 +1,5 @@ +config: + name: xquare-backoffice + prefix: "/xquare-backoffice + service_type: be + port: 8080 From 6cce65c6ab5555d73871790b0b9aa6ee62075bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=8F=84=EA=B2=BD?= Date: Sat, 10 Feb 2024 20:16:54 +0900 Subject: [PATCH 4/4] Create git-action.yml --- .github/workflows/git-action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/git-action.yml b/.github/workflows/git-action.yml index a878023..b13449c 100644 --- a/.github/workflows/git-action.yml +++ b/.github/workflows/git-action.yml @@ -1,4 +1,4 @@ -name: gradle-pick +name: gradle-backoffice on: push: