Skip to content

Commit

Permalink
Update image name to mx-bluesky in line with CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
rtuck99 committed Sep 18, 2024
1 parent 1180e5a commit 7851a16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions utility_scripts/build_docker_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ for option in "$@"; do
done

PROJECTDIR=`dirname $0`/..
PROJECT=hyperion
IMAGE=mx-bluesky

if ! git diff --cached --quiet; then
echo "Cannot build image from unclean workspace"
Expand All @@ -40,15 +40,15 @@ fi

if [[ $BUILD == 1 ]]; then
echo "Building initial image"
LATEST_TAG=$PROJECT:latest
LATEST_TAG=$IMAGE:latest
TMPDIR=/tmp podman build \
-f $PROJECTDIR/Dockerfile.release \
--tag $LATEST_TAG \
$PROJECTDIR
# Now extract the version from the built image and then rebuild with the label
IMAGE_VERSION=$(podman run --rm --entrypoint=hyperion $LATEST_TAG -c "--version" | \
sed -e 's/[^a-zA-Z0-9 ._-]/_/g')
TAG=$PROJECT:$IMAGE_VERSION
TAG=$IMAGE:$IMAGE_VERSION
echo "Labelling image with version $IMAGE_VERSION, tagging with tags $TAG $LATEST_TAG"
TMPDIR=/tmp podman build \
-f $PROJECTDIR/Dockerfile.release \
Expand All @@ -64,7 +64,7 @@ if [[ $PUSH == 1 ]]; then
echo "Not logged in to ghcr.io"
exit 1
fi
echo "Pushing to ghcr.io/$NAMESPACE/$PROJECT:latest ..."
podman push $PROJECT:latest docker://ghcr.io/$NAMESPACE/$PROJECT:latest
podman push $PROJECT:latest docker://ghcr.io/$NAMESPACE/$PROJECT:$IMAGE_VERSION
echo "Pushing to ghcr.io/$NAMESPACE/$IMAGE:latest ..."
podman push $IMAGE:latest docker://ghcr.io/$NAMESPACE/$IMAGE:latest
podman push $IMAGE:latest docker://ghcr.io/$NAMESPACE/$IMAGE:$IMAGE_VERSION
fi
2 changes: 1 addition & 1 deletion utility_scripts/docker/i03-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: i03-hyperion
services:
hyperion-common:
image: localhost/hyperion
image: localhost/mx-bluesky
pull_policy: never
expose:
- "5005"
Expand Down

0 comments on commit 7851a16

Please sign in to comment.