Skip to content

Commit

Permalink
hi server update
Browse files Browse the repository at this point in the history
  • Loading branch information
mimimix committed Jan 15, 2024
1 parent 3e7eefb commit f7a5dc9
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,18 @@ jobs:
with:
path: dockerCache
key: docker-cache-${{ runner.os }}-${{ matrix.target }}
- name: Install docker buildx
uses: docker/setup-buildx-action@v3
- name: Preparing builder - ${{ matrix.target }}
run: |
docker buildx build -f ./base.Dockerfile \
-t base:${{ matrix.target }} \
--target ${{ matrix.target }} \
--cache-from type=gha,src=dockerCache \
--cache-to type=gha,mode=max,src=dockerCache \
.
uses: docker/build-push-action@v3
with:
file: ./base.Dockerfile
context: .
tags: base:${{ matrix.target }}
target: ${{ matrix.target }}
cache-from: type=gha
cache-to: type=gha,mode=max
load: true
- name: Save docker image
run: |
docker images
Expand Down

0 comments on commit f7a5dc9

Please sign in to comment.