Skip to content

Commit

Permalink
Merge pull request #72 from Favor-Gift-Reminder/juwon/#56
Browse files Browse the repository at this point in the history
[Fix] jib dockerhub account 설정 - #56
  • Loading branch information
Juser0 authored Sep 10, 2023
2 parents a4cbb84 + fb05cfe commit 0cca3c9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/gradle-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ jobs:
java-version: '11'
distribution: 'temurin'

- name: Create application.yml
- name: Create properties
run: |
cd favor
echo "${{ secrets.GRADLE_PROPERTIES_CONTENT }}" > gradle.properties
mkdir -p src/main/resources
echo "${{ secrets.APPLICATION_YML_CONTENT }}" > src/main/resources/application.yml
Expand Down
4 changes: 3 additions & 1 deletion favor/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ out/
### Config Files ###
application.yml
application-dev.yml
application-prod.yml
application-prod.yml

gradle.properties
8 changes: 8 additions & 0 deletions favor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jib {
to {
image = "justuser0129/favor"
tags = [ "latest" ]
auth {
username = project.findProperty('DockerUsername')
password = project.findProperty('DockerPassword')
}
}
from {
image = "eclipse-temurin:11-jre"
Expand All @@ -28,6 +32,10 @@ jib {
os = "linux"
}
}
auth {
username = project.findProperty('DockerUsername')
password = project.findProperty('DockerPassword')
}
}
container {
creationTime = "USE_CURRENT_TIMESTAMP"
Expand Down

0 comments on commit 0cca3c9

Please sign in to comment.