Skip to content

Commit

Permalink
try build cache, try $PWD
Browse files Browse the repository at this point in the history
  • Loading branch information
abe-winter committed Aug 16, 2023
1 parent e1408d4 commit 310ea32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/server-32bit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:
with:
file: etc/packaging/32bit/Dockerfile
tags: ghcr.io/viamrobotics/viam-server:armv7
pull: true # todo: this seems to not be working -- read buildjet + docker caching docs
pull: true
push: true
cache-from: type=registry,ref=ghcr.io/viamrobotics/viam-server:buildcache
cache-to: type=registry,ref=ghcr.io/viamrobotics/viam-server:buildcache
platforms: linux/armv7
build:
needs: [docker]
Expand All @@ -38,5 +40,5 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: build
run: |
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
docker run --platform linux/armv7 --rm -v $PWD/:/rdk ghcr.io/viamrobotics/viam-server:armv7 go build -v -tags no_pigpio,no_tflite ./web/cmd/server
file server

0 comments on commit 310ea32

Please sign in to comment.