-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from bas-kirill/feature/deploy-to-dev-github-…
…action fix(dev): add github action to deploy dev
- Loading branch information
Showing
14 changed files
with
100 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,16 +26,10 @@ docker context use "${MUSE_DOCKER_DEFAULT_CONTEXT}" | |
if [ "$stage" != "local" ]; then | ||
context_name=muse-deploy-server | ||
if ! docker context ls --format '{{.Name}}' | grep -q "^${context_name}$"; then | ||
docker context create "${context_name}" --description "[MUSE] Deploy Server" --docker "host=ssh://[email protected]" | ||
docker context create "${context_name}" --description "[MUSE] Deploy Server" --docker "host=ssh://${SSH_USER}@${SSH_HOST}" | ||
fi | ||
|
||
docker context use muse-deploy-server | ||
|
||
function finish { | ||
docker context use desktop-linux | ||
} | ||
|
||
trap 'finish' EXIT | ||
fi | ||
|
||
(cd "$rootDir/server" && exec ./gradlew clean) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#!/bin/bash | ||
set -e | ||
currentDir=$(cd -P -- "$(dirname -- "$0")" && pwd -P) | ||
rootDir="$currentDir/../../../" | ||
|
||
(cd "$rootDir/client" && echo "Current path: '$(pwd)'" && npx prettier . --check) | ||
(cd "$rootDir/client" && npx prettier . --check) | ||
(cd "$rootDir/client" && npx prettier . --write) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ rootDir="$currentDir/../../" | |
|
||
[[ -z "${MUSE_DOCKER_DEFAULT_CONTEXT}" ]] && { echo "'MUSE_DOCKER_DEFAULT_CONTEXT' is not set. Exiting."; exit 1; } | ||
[[ -z "${MUSE_JWT_SECRET_KEY}" ]] && { echo "'MUSE_JWT_SECRET_KEY' is not set. Exiting."; exit 1; } | ||
[[ -z "${SSH_USER}" ]] && { echo "'SSH_USER' is not set. Exiting."; exit 1; } | ||
[[ -z "${SSH_HOST}" ]] && { echo "'SSH_HOST' is not set. Exiting."; exit 1; } | ||
|
||
trap 'docker context use "${MUSE_DOCKER_DEFAULT_CONTEXT}"' EXIT | ||
|
||
|
@@ -27,16 +29,10 @@ docker context use "${MUSE_DOCKER_DEFAULT_CONTEXT}" | |
if [ "$stage" != "local" ]; then | ||
context_name=muse-$stage | ||
if ! docker context ls --format '{{.Name}}' | grep -q "^${context_name}$"; then | ||
docker context create "${context_name}" --description "[MUSE $stage] Deploy Server" --docker "host=ssh://[email protected]" | ||
docker context create "${context_name}" --description "[MUSE $stage] Deploy Server" --docker "host=ssh://${SSH_USER}@${SSH_HOST}" | ||
fi | ||
|
||
docker context use "$context_name" | ||
|
||
function finish { | ||
docker context use desktop-linux | ||
} | ||
|
||
trap "finish" EXIT | ||
fi | ||
|
||
export DOCKER_REPOSITORY=$dockerRepository | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ currentDir=$(cd -P -- "$(dirname -- "$0")" && pwd -P) | |
rootDir="$currentDir/../../" | ||
|
||
[[ -z "${MUSE_DOCKER_DEFAULT_CONTEXT}" ]] && { echo "'MUSE_DOCKER_DEFAULT_CONTEXT' is not set. Exiting."; exit 1; } | ||
[[ -z "${SSH_USER}" ]] && { echo "'SSH_USER' is not set. Exiting."; exit 1; } | ||
[[ -z "${SSH_HOST}" ]] && { echo "'SSH_HOST' is not set. Exiting."; exit 1; } | ||
|
||
trap 'docker context use "${MUSE_DOCKER_DEFAULT_CONTEXT}"' EXIT | ||
|
||
|
@@ -26,7 +28,7 @@ docker context use "${MUSE_DOCKER_DEFAULT_CONTEXT}" | |
if [ "$stage" != "local" ]; then | ||
context_name=muse-$stage | ||
if ! docker context ls --format '{{.Name}}' | grep -q "^${context_name}$"; then | ||
docker context create "${context_name}" --description "[MUSE] '$stage' Deploy Server" --docker "host=ssh://[email protected]" | ||
docker context create "${context_name}" --description "[MUSE] '$stage' Deploy Server" --docker "host=ssh://${SSH_USER}@${SSH_HOST}" | ||
fi | ||
|
||
docker context use "$context_name" | ||
|