Skip to content

Commit d8ea841

Browse files
committed
Fixup build step on the publish workflow
1 parent d4d6a37 commit d8ea841

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
# Base image only has amd64
1615
platform: ["linux/amd64", "linux/arm/v7"]
1716
steps:
1817
- name: Checkout repository

.github/workflows/publish.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111

1212
env:
1313
IMAGE_TAG: docker.io/botsudo/docker-openldap:latest
14+
PLATFORM: "linux/amd64,linux/arm/v7"
1415

1516
jobs:
1617
push_to_registry:
@@ -29,10 +30,23 @@ jobs:
2930
username: ${{ secrets.DOCKER_REPOSITORY_LOGIN }}
3031
password: ${{ secrets.DOCKER_REPOSITORY_PASSWORD }}
3132

32-
- name: Build image
33+
# https://github.com/docker/setup-qemu-action
34+
- name: Set up QEMU
35+
uses: docker/setup-qemu-action@v1
36+
# https://github.com/docker/setup-buildx-action
37+
- name: Set up Docker Buildx
38+
uses: docker/setup-buildx-action@v1
39+
40+
- name: Build action image
3341
run: make docker-build
34-
- name: Test image
42+
env:
43+
DOCKER_BUILDKIT: 1
44+
45+
- name: Build action image
3546
run: make test
47+
env:
48+
DOCKER_BUILDKIT: 1
49+
COMPOSE_DOCKER_CLI_BUILD: 1
3650

3751
#- name: Sign and push docker image
3852
# uses: sudo-bot/action-docker-sign@latest

0 commit comments

Comments
 (0)