Skip to content

Commit 529c298

Browse files
committed
Update docker-compose for easier versioned deployment
1 parent 8d2e807 commit 529c298

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build_and_publish_to_docker.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
GIT_DEPLOYMENT_VERSION=$(git rev-parse --short HEAD)
44
docker login
55
docker buildx create --use --platform=linux/arm64,linux/amd64 --name multi-platform-builder
6-
docker buildx build --platform linux/amd64,linux/arm64 -t pankalog/fleet-deployment:"$GIT_DEPLOYMENT_VERSION" --builder multi-platform-builder ./deployment/build/
7-
docker buildx build --platform linux/amd64,linux/arm64 -t pankalog/fleet-management:"$GIT_DEPLOYMENT_VERSION" --builder multi-platform-builder ./openremote/manager/build/install/manager/
8-
docker-compose -p fleet-management up -d
6+
docker buildx build --load --platform linux/amd64,linux/arm64 -t pankalog/fleet-deployment:"$GIT_DEPLOYMENT_VERSION" --builder multi-platform-builder ./deployment/build/
7+
docker buildx build --load --platform linux/amd64,linux/arm64 -t pankalog/fleet-management:"$GIT_DEPLOYMENT_VERSION" --builder multi-platform-builder ./openremote/manager/build/install/manager/
8+
DEPLOYMENT_VERSION="$GIT_DEPLOYMENT_VERSION" docker-compose -p fleet-management up -d

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ services:
108108
# <<: *awslogs
109109

110110
manager:
111-
image: pankalog/fleet-management:${MANAGER_VERSION:-latest}
111+
image: pankalog/fleet-management:${DEPLOYMENT_VERSION:-latest}
112112
restart: always
113113
depends_on:
114114
keycloak:

0 commit comments

Comments
 (0)