From c9aa73040f111d1a19514fd65ade165e76abee2f Mon Sep 17 00:00:00 2001 From: Juser0 Date: Thu, 5 Oct 2023 00:15:54 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20CI/CD=20=ED=8C=8C=EC=9D=B4=ED=94=84?= =?UTF-8?q?=EB=9D=BC=EC=9D=B8=20=EA=B5=AC=ED=98=84=20-=20#10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gradle-cde.yml | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/gradle-cde.yml diff --git a/.github/workflows/gradle-cde.yml b/.github/workflows/gradle-cde.yml new file mode 100644 index 0000000..2cdb84a --- /dev/null +++ b/.github/workflows/gradle-cde.yml @@ -0,0 +1,40 @@ +name: Gradle CI + +on: + push: + branches: + - main + +permissions: + contents: read + +jobs: + Build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + + - name: Create properties + run: | + cd manager + echo "${{ secrets.GRADLE_PROPERTIES_CONTENT }}" > gradle.properties + mkdir -p src/main/resources + echo "${{ secrets.APPLICATION_YML_CONTENT }}" > src/main/resources/application.yml + + - name: Grant execute permission for gradlew + run: | + cd manager + chmod +x gradlew + + - name: DockerHub push with Gradle + run: | + cd manager + ./gradlew jib \ No newline at end of file