Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
awnion committed Sep 10, 2024
1 parent fb348d4 commit 746b1da
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ OUTPUT_DIR=$(pwd)/_output
IMAGE_TAG=afio_builder

rm -rf "$OUTPUT_DIR"
mkdir -p "$OUTPUT_DIR"
echo "Build docker image: $IMAGE_TAG"
docker buildx build -t $IMAGE_TAG .
docker buildx build -t $IMAGE_TAG \
--iidfile "$OUTPUT_DIR"/iddfile \
.
IMAGE_ID=$(cat "$OUTPUT_DIR"/iddfile)
echo "Run docker ..."
docker run --rm -t -v "$OUTPUT_DIR":/output $IMAGE_TAG
docker run --rm -t -v "$OUTPUT_DIR":/output "$IMAGE_ID"

0 comments on commit 746b1da

Please sign in to comment.