Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

align image naming to github workflows #12

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading