Skip to content

Commit

Permalink
Merge pull request #99 from ISTTP/develop
Browse files Browse the repository at this point in the history
workflow 수정, docker-compose-cache.json 추가
  • Loading branch information
ieun32 authored Sep 1, 2024
2 parents 1d383b8 + 875c68f commit fb09c87
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/mainDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,19 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
run: |
docker compose build
docker compose push
- name: Cache Docker layers
uses: docker/bake-action@master
with:
push: true
load: true
files: |-
docker-compose.yml
docker-compose-cache.json
# - name: Build and push
# run: |
# docker compose build
# docker compose push

- name: Pull and restart Docker Container
uses: appleboy/ssh-action@master
Expand Down
26 changes: 26 additions & 0 deletions docker-compose-cache.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"target": {
"client": {
"cache-from": [
"type=gha,scope=ISTTP/K-KOO/client"
],
"cache-to": [
"type=gha,mode=max,scope=ISTTP/K-KOO/client"
],
"output": [
"type=docker"
]
},
"server": {
"cache-from": [
"type=gha,scope=ISTTP/K-KOO/server"
],
"cache-to": [
"type=gha,mode=max,scope=ISTTP/K-KOO/server"
],
"output": [
"type=docker"
]
}
}
}

0 comments on commit fb09c87

Please sign in to comment.