Skip to content

Commit

Permalink
[Fix] jib dockerhub account 설정 - #56
Browse files Browse the repository at this point in the history
  • Loading branch information
Juser0 committed Sep 10, 2023
1 parent 494be0e commit fb05cfe
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 fb05cfe

Please sign in to comment.