Skip to content

Commit

Permalink
Merge: Main <- juwon/#10-CI-CD
Browse files Browse the repository at this point in the history
Feat: CI/CD 파이프라인 구현 - #10
  • Loading branch information
Juser0 authored Oct 4, 2023
2 parents adedf8f + c9aa730 commit 169d5c0
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 169d5c0

Please sign in to comment.