Skip to content

Commit

Permalink
add missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
noursaidi committed Nov 6, 2024
1 parent 36375f9 commit 029ccc7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions misc/distroless_tools/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash -e
set -x

ROOT_DIR=$(realpath $(dirname $(realpath $0)))
UDMI_DIR=$(realpath $ROOT_DIR/../../)
NAME=validator
TAG=latest

docker build --pull --no-cache -t "$NAME:$TAG" $UDMI_DIR -f $ROOT_DIR/Dockerfile

PUSH_REF=$1
if [[ -n $PUSH_REF ]]; then
docker tag "$NAME:$TAG" "$PUSH_REF/$NAME:$TAG"
docker push "$PUSH_REF/$NAME:$TAG"
fi

0 comments on commit 029ccc7

Please sign in to comment.