Skip to content

Commit

Permalink
Restyled by shellharden
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and FernandoLGuzman committed Sep 30, 2022
1 parent 26425c0 commit 25eab4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/chef/create_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ set -e # Exit on any script error.
OUT_DIRECTORY="$WORKING_DIR/out/"

# Clean up the out directory before extracting device files
rm -r $OUT_DIRECTORY*
rm -r "$OUT_DIRECTORY"*

# Extract device files
tar -xf $TAR_PATH -C $OUT_DIRECTORY
tar -xf "$TAR_PATH" -C "$OUT_DIRECTORY"

# Build the docker image
docker build -f $WORKING_DIR/dockerfile -t "$IMAGE_NAME":latest -t "$IMAGE_NAME:short-sha_$SHORT_SHA" \
docker build -f "$WORKING_DIR"/dockerfile -t "$IMAGE_NAME":latest -t "$IMAGE_NAME:short-sha_$SHORT_SHA" \
-t "$IMAGE_NAME:build-id_$BUILD_ID" -t "$IMAGE_NAME:commit-sha_$COMMIT_SHA" -t "$IMAGE_NAME:revision-id_$REVISION_ID" \
--build-arg DEVICE_NAME=$DEVICE_NAME .
--build-arg DEVICE_NAME="$DEVICE_NAME" .

0 comments on commit 25eab4c

Please sign in to comment.