Skip to content

Commit 6852ab0

Browse files
committed
Add arm64 support
Signed-off-by: Ed Warnicke <[email protected]>
1 parent 306afd0 commit 6852ab0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,17 @@ jobs:
121121
df -h
122122
- name: Docker Build
123123
run: |
124-
docker build .
124+
docker buildx create --use
125+
echo "docker buildx inspect --bootstrap"
126+
docker buildx inspect --bootstrap
127+
echo "docker buildx build --platform linux/amd64,linux/arm64 ."
128+
docker buildx build --platform linux/amd64,linux/arm64 .
125129
VPP_VERSION=$(docker run $(docker build -q . --target version))
126130
echo "VPP_VERSION=${VPP_VERSION}" >> $GITHUB_ENV
127131
TAG=v${VPP_VERSION/\~/-}
128132
echo "TAG=${TAG}" >> $GITHUB_ENV
129-
docker build -t ghcr.io/${{github.repository}}/vpp:${TAG} . --target vpp
130-
docker build -t ghcr.io/${{github.repository}}/vpp-dbg:${TAG} . --target vpp-dbg
133+
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/${{github.repository}}/vpp:${TAG} . --target vpp
134+
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/${{github.repository}}/vpp-dbg:${TAG} . --target vpp-dbg
131135
- name: Generate files
132136
run: go generate ./...
133137
- name: Check for changes in generated code

0 commit comments

Comments
 (0)