Skip to content

Commit

Permalink
Update CICD-dev.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarlgnszx authored Jul 26, 2024
1 parent 1430cac commit eebb896
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/CICD-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ jobs:
with:
distribution: 'corretto'
java-version: '21'
- name: Gradle Cache
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: application.yml 생성
run: |
Expand Down Expand Up @@ -50,10 +59,10 @@ jobs:
with:
username: ${{ secrets.DOCKER_LOGIN_USERNAME }}
password: ${{ secrets.DOCKER_LOGIN_ACCESSTOKEN }}

- name: docker image 빌드 및 푸시
run: |
docker build --platform linux/amd64 -t dateroad/dateroad-server .
docker build --cache-from dateroad/dateroad-server --platform linux/amd64 -t dateroad/dateroad-server .
docker push dateroad/dateroad-server
working-directory: ${{ env.working-directory }}

Expand Down

0 comments on commit eebb896

Please sign in to comment.