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 8ea2bec commit 1487d82
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
2 changes: 2 additions & 0 deletions db/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")"

HELM_CHART_VERSION="$(cat ../helm-chart-version.txt)"

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

(
cd db
./docker-build-local-and-publish-on-ci.sh
)
(
cd keycloak-extensions
./docker-build-local-and-publish-on-ci.sh
)
(
cd proxy
./docker-build-local-and-publish-on-ci.sh
)
./db/docker-build-local-and-publish-on-ci.sh
./keycloak-extensions/docker-build-local-and-publish-on-ci.sh
./proxy/docker-build-local-and-publish-on-ci.sh
2 changes: 2 additions & 0 deletions keycloak-extensions/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")"

HELM_CHART_VERSION="$(cat ../helm-chart-version.txt)"

if [ "${CI}" = "true" ]; then
Expand Down
2 changes: 2 additions & 0 deletions proxy/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")"

HELM_CHART_VERSION="$(cat ../helm-chart-version.txt)"

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

0 comments on commit 1487d82

Please sign in to comment.