From d8583ee1c25289aa84508a5ef6ef13b1b01d3bea Mon Sep 17 00:00:00 2001 From: Kim Dong Hyun <98632435+DDonghyeo@users.noreply.github.com> Date: Thu, 23 May 2024 17:56:18 +0900 Subject: [PATCH] Create ci.yml --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..4c91ebc6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: Backend CI + +on: + pull_request: + branches: + - prod + - develop + - cicd/#61 + types: [opened, synchronize] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: action checkout + uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build with Gradle - config + run: ./config-service/gradlew clean build -x test + env: + CONFIG_GIT_URI: ${{ secrets.CONFIG_GIT_URI }} + CONFIG_PASSPHRASE: ${{ secrets.CONFIG_PASSPHRASE }} + CONFIG_PRIVATE_KEY: ${{ secrets.CONFIG_PRIVATE_KEY }} +