Skip to content

Commit

Permalink
Update docker-compose for easier versioned deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
pankalog committed Oct 7, 2024
1 parent 8d2e807 commit 529c298
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions build_and_publish_to_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
GIT_DEPLOYMENT_VERSION=$(git rev-parse --short HEAD)
docker login
docker buildx create --use --platform=linux/arm64,linux/amd64 --name multi-platform-builder
docker buildx build --platform linux/amd64,linux/arm64 -t pankalog/fleet-deployment:"$GIT_DEPLOYMENT_VERSION" --builder multi-platform-builder ./deployment/build/
docker buildx build --platform linux/amd64,linux/arm64 -t pankalog/fleet-management:"$GIT_DEPLOYMENT_VERSION" --builder multi-platform-builder ./openremote/manager/build/install/manager/
docker-compose -p fleet-management up -d
docker buildx build --load --platform linux/amd64,linux/arm64 -t pankalog/fleet-deployment:"$GIT_DEPLOYMENT_VERSION" --builder multi-platform-builder ./deployment/build/
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/
DEPLOYMENT_VERSION="$GIT_DEPLOYMENT_VERSION" docker-compose -p fleet-management up -d
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ services:
# <<: *awslogs

manager:
image: pankalog/fleet-management:${MANAGER_VERSION:-latest}
image: pankalog/fleet-management:${DEPLOYMENT_VERSION:-latest}
restart: always
depends_on:
keycloak:
Expand Down

0 comments on commit 529c298

Please sign in to comment.