Skip to content

Commit c6c0467

Browse files
committed
Progress towards using buildx
1 parent 95b6183 commit c6c0467

File tree

1 file changed

+27
-5
lines changed

1 file changed

+27
-5
lines changed

.github/workflows/docker-build.yml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
name: Build Docker images
44

55
# This matches the Docker image building done in the release process.
6+
#
7+
# It is possible to use https://github.com/nektos/act to run this workflow.
68

79
on:
810
push:
@@ -24,23 +26,43 @@ jobs:
2426

2527
- name: Set up Docker Buildx
2628
uses: docker/setup-buildx-action@v1
29+
with:
30+
# This defaults to "docker-containerized".
31+
# We want to share the vws-mock:base image to the building of the
32+
# later builds, without pushing to a registry.
33+
#
34+
# Therefore, we choose not to build in a container.
35+
driver: docker
2736

2837
- name: Build base Docker image
2938
uses: docker/[email protected]
3039
with:
40+
buildkitd-flags: --debug
3141
file: src/mock_vws/_flask_server/dockerfiles/base/Dockerfile
3242
push: false
33-
load: true
34-
cache-to: type=local,dest=.
3543
tags: |
3644
vws-mock:base
3745
38-
- name: Build and push target manager Docker image
46+
- name: Build target manager Docker image
3947
uses: docker/[email protected]
4048
with:
4149
file: src/mock_vws/_flask_server/dockerfiles/target_manager/Dockerfile
4250
push: false
43-
load: true
44-
cache-from: type=local,src=.
4551
tags: |
4652
adamtheturtle/vuforia-target-manager-mock:latest
53+
54+
- name: Build VWS Docker image
55+
uses: docker/[email protected]
56+
with:
57+
file: src/mock_vws/_flask_server/dockerfiles/vws/Dockerfile
58+
push: false
59+
tags: |
60+
adamtheturtle/vuforia-vws-mock:latest
61+
62+
- name: Build VWQ Docker image
63+
uses: docker/[email protected]
64+
with:
65+
file: src/mock_vws/_flask_server/dockerfiles/vwq/Dockerfile
66+
push: false
67+
tags: |
68+
adamtheturtle/vuforia-vwq-mock:latest

0 commit comments

Comments
 (0)