Skip to content

Commit

Permalink
🌐 [Ci]: base 이미지 캐싱
Browse files Browse the repository at this point in the history
  • Loading branch information
seungheon123 committed Nov 30, 2024
1 parent 94ee16d commit 0e9d904
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/media-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ on:
push:
branches:
- develop
paths:
- 'apps/media/**'
- Fix/316
# paths:
# - 'apps/media/**'

jobs:
build-and-push:
Expand Down Expand Up @@ -35,6 +36,19 @@ jobs:
REGISTRY_URL: ${{ secrets.NCLOUD_REGISTRY_URL }}
run: |
echo "$PASSWORD" | docker login -u "$USERNAME" "$REGISTRY_URL" --password-stdin
- name: Pull Base Docker image
run: |
docker pull ${{ secrets.NCLOUD_REGISTRY_URL }}/media-camon-base:latest || true
- name: Build Base Docker image
run: |
docker build \
-f ./apps/media/Dockerfile.base \
--target base \
-t ${{ secrets.NCLOUD_REGISTRY_URL }}/media-camon-base:latest \
.
- name: Push Base Docker image
run: |
docker push ${{ secrets.NCLOUD_REGISTRY_URL }}/media-camon-base:latest
- name: Build Docker image
run: |
Expand Down

0 comments on commit 0e9d904

Please sign in to comment.