Skip to content

Commit

Permalink
ci: update shell scripts for Docker
Browse files Browse the repository at this point in the history
Make scripts more usable by executing them in the correct directory even when called from a different directory.
  • Loading branch information
odzhychko committed Jan 12, 2024
1 parent 8c99add commit aa75e4c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 16 deletions.
20 changes: 4 additions & 16 deletions docker-build-local-and-publish-on-ci-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,7 @@
set -e
set -x

(
cd instances-manager
./docker-build-local-and-publish-on-ci.sh
)
(
cd workspace-client
./docker-build-local-and-publish-on-ci.sh
)
(
cd workspace-job
./docker-build-local-and-publish-on-ci.sh
)
(
cd workspace-manager
./docker-build-local-and-publish-on-ci.sh
)
./instances-manager/docker-build-local-and-publish-on-ci.sh
./workspace-client/docker-build-local-and-publish-on-ci.sh
./workspace-job/docker-build-local-and-publish-on-ci.sh
./workspace-manager/docker-build-local-and-publish-on-ci.sh
2 changes: 2 additions & 0 deletions instances-manager/docker-build-local-and-publish-on-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
set -e
set -x

cd "$(dirname "$0")"

MODELIX_WORKSPACES_VERSION="$(cat ../workspaces-version.txt)"

if [ "${CI}" = "true" ]; then
Expand Down
2 changes: 2 additions & 0 deletions workspace-client/docker-build-local-and-publish-on-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
set -e
set -x

cd "$(dirname "$0")"

getProperty() {
PROPERTY_KEY=$1
PROPERTY_VALUE=$(grep "$PROPERTY_KEY" < ../gradle.properties | cut -d'=' -f2)
Expand Down
2 changes: 2 additions & 0 deletions workspace-job/docker-build-local-and-publish-on-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
set -e
set -x

cd "$(dirname "$0")"

getProperty() {
PROPERTY_KEY=$1
PROPERTY_VALUE=$(grep "$PROPERTY_KEY" < ../gradle.properties | cut -d'=' -f2)
Expand Down
2 changes: 2 additions & 0 deletions workspace-manager/docker-build-local-and-publish-on-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
set -e
set -x

cd "$(dirname "$0")"

MODELIX_WORKSPACES_VERSION="$(cat ../workspaces-version.txt)"

if [ "${CI}" = "true" ]; then
Expand Down

0 comments on commit aa75e4c

Please sign in to comment.