Skip to content

Commit

Permalink
build examples properly
Browse files Browse the repository at this point in the history
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
  • Loading branch information
shizhMSFT committed Oct 22, 2021
1 parent 8da4a2b commit bbb9564
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/acceptance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ rm -f bin/oras-acceptance-* || true
docker rm -f oras-acceptance-registry || true

# Build the examples into binaries
CGO_ENABLED=0 go build -v -o bin/oras-acceptance-simple ./examples/simple
CGO_ENABLED=0 go build -v -o bin/oras-acceptance-advanced ./examples/advanced
cd example
CGO_ENABLED=0 go build -v -o ../bin/oras-acceptance-simple ./simple
CGO_ENABLED=0 go build -v -o ../bin/oras-acceptance-advanced ./advanced
cd ..

# Run a test registry and expose at localhost:5000
trap "docker rm -f oras-acceptance-registry" EXIT
Expand Down

0 comments on commit bbb9564

Please sign in to comment.