Skip to content

Commit

Permalink
try manual docker --platform build
Browse files Browse the repository at this point in the history
  • Loading branch information
abe-winter committed Aug 16, 2023
1 parent e834d77 commit 56a64d0
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/server-32bit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,24 @@ jobs:
with:
file: etc/packaging/32bit/Dockerfile
tags: ghcr.io/viamrobotics/viam-server:armv7
pull: true
pull: true # todo: this seems to not be working -- read buildjet + docker caching docs
push: true
platforms: linux/armv7
build:
needs: [docker]
runs-on: buildjet-4vcpu-ubuntu-2204-arm
container:
image: ghcr.io/viamrobotics/viam-server:armv7
# options: --platform linux/armv7
permissions:
packages: read
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: build
run: |
go build -v -tags no_pigpio,no_tflite ./web/cmd/server
docker run --platform linux/armv7 --rm -v .:/rdk ghcr.io/viamrobotics/viam-server:armv7 go build -v -tags no_pigpio,no_tflite ./web/cmd/server
file server

0 comments on commit 56a64d0

Please sign in to comment.