Skip to content

Commit

Permalink
align image naming to github workflows (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
noMoreCLI authored Dec 10, 2024
1 parent fd005a7 commit 182129f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ REPO_DIR=$(dirname $0)/..
#MacOSX M architecture: linux/arm64/v8
PLATFORM="linux/amd64"
IMAGE_PREFIX="app-simulator"
REPO_PREFIX="cisco-open"
VERSION=$($REPO_DIR/scripts/bumpversion.sh)

# Function to display help
Expand All @@ -31,7 +32,7 @@ for ARG in "$@"; do
shift
;;
--repoprefix=*)
IMAGE_PREFIX="${ARG#*=}"
REPO_PREFIX="${ARG#*=}"
shift
;;
--help)
Expand All @@ -49,7 +50,7 @@ done
for DIR in $REPO_DIR/src/services/*;
do
if [ -d $DIR ] ; then
IMAGE_TAG="${IMAGE_PREFIX}/services-$(basename "$DIR"):$VERSION"
IMAGE_TAG="${REPO_PREFIX}/${IMAGE_PREFIX}-services-$(basename "$DIR"):$VERSION"
echo "Building $IMAGE_TAG..."
echo "Running 'docker buildx build --platform $PLATFORM -t $IMAGE_TAG $DIR $PUSH'"
docker buildx build --platform $PLATFORM -t $IMAGE_TAG $PUSH $DIR
Expand All @@ -59,8 +60,7 @@ done;
for DIR in $REPO_DIR/src/loaders/*;
do
if [ -d $DIR ] ; then
IMAGE_TAG="${IMAGE_PREFIX}/loaders-$(basename "$DIR"):$VERSION"
echo "Building $IMAGE_TAG..."
IMAGE_TAG="${REPO_PREFIX}/${IMAGE_PREFIX}-loaders-$(basename "$DIR"):$VERSION"
echo "Building $IMAGE_TAG..."
echo "Running 'docker buildx build --platform $PLATFORM -t $IMAGE_TAG $DIR $PUSH'"
docker buildx build --platform $PLATFORM -t $IMAGE_TAG $PUSH $DIR $PUSH
Expand Down

0 comments on commit 182129f

Please sign in to comment.