Skip to content

Commit

Permalink
Update docker-ci.yml : 순서 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
pingowl authored May 22, 2024
1 parent 6bc11fd commit e7a3061
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,23 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4

# Google credentials
- name: google-credentials
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GCP_CREDENTIAL_JSON }}'
project_id: '${{ secrets.GCP_PROJECT_ID }}'
#workload_identity_provider: '${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}'
#service_account: '${{ secrets.GCP_SERVICE_ACCOUNT }}'

# 1. Java 세팅
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'

- name: 'Use gcloud CLI'
run: 'gcloud info'

# 1. Java 세팅
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -53,29 +68,12 @@ jobs:
json: ${{ secrets.GCP_CREDENTIAL_JSON }}
dir: 'src/main/resources'

- name: checkout
uses: actions/checkout@v4
# Google credentials
- name: google-credentials
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GCP_CREDENTIAL_JSON }}'
project_id: '${{ secrets.GCP_PROJECT_ID }}'
#workload_identity_provider: '${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}'
#service_account: '${{ secrets.GCP_SERVICE_ACCOUNT }}'

- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'

- name: 'Use gcloud CLI'
run: 'gcloud info'


# 2. Spring Boot 애플리케이션 빌드
- name: Build with Gradle
run: |
chmod +x ./gradlew
./gradlew bootJar -x test
./gradlew clean bootJar -x test
# 3. Docker 이미지 빌드
- name: docker image build
Expand Down

0 comments on commit e7a3061

Please sign in to comment.