Skip to content

Commit

Permalink
rabotai nu pzzz
Browse files Browse the repository at this point in the history
  • Loading branch information
mimimix committed Jan 15, 2024
1 parent babc9bb commit ecdb94a
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,26 @@ 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 }}
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
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 \
.
# - name: Install docker buildx
# uses: docker/setup-buildx-action@v3
# - name: Preparing builder - ${{ matrix.target }}
# 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 ecdb94a

Please sign in to comment.