Skip to content

Commit 1fc3dfe

Browse files
committed
master workflow, builds amd64-only :latest and :latest-debug
- arm64 via qemu is waaay too slow - tags are still multiarch
1 parent 10bac08 commit 1fc3dfe

File tree

1 file changed

+2
-38
lines changed

1 file changed

+2
-38
lines changed

.github/workflows/master-latest.yaml

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,7 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v2
1414

15-
# Setup qEMU for arm64
16-
- name: Set up QEMU
17-
uses: docker/setup-qemu-action@v1
18-
with:
19-
platforms: arm64
20-
21-
# We use buildx instead of regular build so we can take advantage of Docker layer cache via GithubActions's cache
22-
# Also buildx offers multi-arch builds
15+
# We use buildx instead of regular build so we can take advantage of Docker layer cache via GithubActions' cache
2316
- name: Set up Docker Buildx
2417
id: buildx
2518
uses: docker/setup-buildx-action@v1
@@ -54,7 +47,7 @@ jobs:
5447
tags: rpardini/docker-registry-proxy:latest
5548
push: true
5649
cache-from: type=local,src=/tmp/.buildx-cache/release
57-
# first run does not export the cache
50+
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache/release
5851

5952
- name: Build and push amd64 Debug Docker Image to DockerHub
6053
uses: docker/build-push-action@v2
@@ -67,33 +60,4 @@ jobs:
6760
tags: rpardini/docker-registry-proxy:latest-debug
6861
push: true
6962
cache-from: type=local,src=/tmp/.buildx-cache/debug
70-
# first run does not export the cache
71-
72-
# Do it all again with both archs. the amd64 will be a huge cache hit
73-
# this will update the manifest have both arches
74-
- name: Build and push multiarch Release Docker Image to DockerHub
75-
uses: docker/build-push-action@v2
76-
with:
77-
build-args: DEBUG_BUILD=0,BASE_IMAGE_SUFFIX=
78-
builder: ${{ steps.buildx.outputs.name }}
79-
context: .
80-
file: ./Dockerfile
81-
platforms: linux/arm64,linux/amd64
82-
tags: rpardini/docker-registry-proxy:latest
83-
push: true
84-
cache-from: type=local,src=/tmp/.buildx-cache/release
85-
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache/release
86-
87-
- name: Build and push multiarch Debug Docker Image to DockerHub
88-
uses: docker/build-push-action@v2
89-
with:
90-
build-args: DEBUG_BUILD=1,BASE_IMAGE_SUFFIX=-debug
91-
builder: ${{ steps.buildx.outputs.name }}
92-
context: .
93-
file: ./Dockerfile
94-
platforms: linux/arm64,linux/amd64
95-
tags: rpardini/docker-registry-proxy:latest-debug
96-
push: true
97-
cache-from: type=local,src=/tmp/.buildx-cache/debug
9863
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache/debug
99-

0 commit comments

Comments
 (0)