Skip to content

Commit

Permalink
refres and push2immauss.sh updates
Browse files Browse the repository at this point in the history
  • Loading branch information
immauss committed Dec 3, 2023
1 parent 5fa327c commit c0919e8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
11 changes: 7 additions & 4 deletions bin/push2immauss.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/bin/bash
TAG=latest
docker buildx build -f Dockerfile.refresh \
--build-arg TAG=${TAG} --target final \
-t gitlab.immauss.com/immauss/openvas:$TAG \
VER=$(cat ver.current)
DOCKERFILE=$(mktemp)
sed "s/\$VER/$VER/" Dockerfile.refresh > $DOCKERFILE
docker buildx build -f $DOCKERFILE \
--target final \
-t gitlab.immauss.com:5050/immauss/openvas:latest \
--platform linux/arm64,linux/amd64,linux/arm/v7 \
--push .
--push .
10 changes: 5 additions & 5 deletions bin/refresh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ echo "Now rebuild the image"
cd $WorkDir
echo "$(pwd) Is current working directory."
date > update.ts
docker buildx build -f $DOCKERFILE --build-arg TAG=${TAG} --target final -t immauss/openvas:$TAG --platform linux/arm64,linux/amd64,linux/arm/v7 --push .
docker buildx build -f $DOCKERFILE --target final -t immauss/openvas:$TAG --platform linux/arm64,linux/amd64,linux/arm/v7 --push .
if [ $? -ne 0 ]; then
echo "Build failed."
exit
fi

# echo "Cleaning up"
# cd $TWD
# rm -rf *
# echo "All done"
echo "Cleaning up"
cd $TWD
rm -rf *
echo "All done"
2 changes: 1 addition & 1 deletion update.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Thu Nov 30 06:54:14 UTC 2023
Thu Nov 30 10:37:41 UTC 2023

0 comments on commit c0919e8

Please sign in to comment.