Skip to content

Commit

Permalink
Feat: CI/CD 파이프라인 구현 - #10
Browse files Browse the repository at this point in the history
  • Loading branch information
Juser0 committed Oct 4, 2023
1 parent adedf8f commit c9aa730
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/gradle-cde.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c9aa730

Please sign in to comment.