-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e67782
commit cf51e65
Showing
1 changed file
with
42 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,48 +39,48 @@ load _helper.deployment.bash | |
substep "Using provided SRC_DIR ${SRC_DIR}" | ||
assert_dir_not_empty "${SRC_DIR}" | ||
fi | ||
# | ||
# # Make sure that all files were copied out from the container or passed from | ||
# # the previous stage of the build. | ||
# | ||
# assert_files_present_common "${CURRENT_PROJECT_DIR}" | ||
# assert_files_present_deployment "${CURRENT_PROJECT_DIR}" | ||
# assert_files_present_no_integration_acquia "${CURRENT_PROJECT_DIR}" | ||
# assert_files_present_no_integration_lagoon "${CURRENT_PROJECT_DIR}" | ||
# assert_files_present_no_integration_ftp "${CURRENT_PROJECT_DIR}" | ||
# assert_git_repo "${SRC_DIR}" | ||
# | ||
# # Make sure that one of the excluded directories will be ignored in the | ||
# # deployment artifact. | ||
# mkdir -p "${SRC_DIR}"/web/themes/custom/star_wars/node_modules | ||
# touch "${SRC_DIR}"/web/themes/custom/star_wars/node_modules/test.txt | ||
# | ||
# substep "Preparing remote repo directory ${REMOTE_REPO_DIR}." | ||
# fixture_prepare_dir "${REMOTE_REPO_DIR}" | ||
# git_init 1 "${REMOTE_REPO_DIR}" | ||
# | ||
# popd >/dev/null | ||
# | ||
# pushd "${CURRENT_PROJECT_DIR}" >/dev/null | ||
# | ||
# substep "Running deployment." | ||
# # This deployment uses all 3 types. | ||
# export VORTEX_DEPLOY_TYPES="artifact,webhook,container_registry" | ||
# | ||
# # Variables for ARTIFACT deployment. | ||
# export VORTEX_DEPLOY_ARTIFACT_GIT_REMOTE="${REMOTE_REPO_DIR}"/.git | ||
# export VORTEX_DEPLOY_ARTIFACT_ROOT="${CURRENT_PROJECT_DIR}" | ||
# export VORTEX_DEPLOY_ARTIFACT_SRC="${SRC_DIR}" | ||
# export VORTEX_DEPLOY_ARTIFACT_GIT_USER_EMAIL="${VORTEX_DEPLOY_ARTIFACT_GIT_USER_EMAIL:[email protected]}" | ||
# | ||
# # Variables for WEBHOOK deployment. | ||
# export VORTEX_DEPLOY_WEBHOOK_URL=http://example.com | ||
# export VORTEX_DEPLOY_WEBHOOK_RESPONSE_STATUS=200 | ||
# | ||
# # Variables for container registry deployment. | ||
# # @todo: Not implemented. Add here when implemented. | ||
# | ||
# # Run deployment. | ||
|
||
# Make sure that all files were copied out from the container or passed from | ||
# the previous stage of the build. | ||
|
||
assert_files_present_common "${CURRENT_PROJECT_DIR}" | ||
assert_files_present_deployment "${CURRENT_PROJECT_DIR}" | ||
assert_files_present_no_integration_acquia "${CURRENT_PROJECT_DIR}" | ||
assert_files_present_no_integration_lagoon "${CURRENT_PROJECT_DIR}" | ||
assert_files_present_no_integration_ftp "${CURRENT_PROJECT_DIR}" | ||
assert_git_repo "${SRC_DIR}" | ||
|
||
# Make sure that one of the excluded directories will be ignored in the | ||
# deployment artifact. | ||
mkdir -p "${SRC_DIR}"/web/themes/custom/star_wars/node_modules | ||
touch "${SRC_DIR}"/web/themes/custom/star_wars/node_modules/test.txt | ||
|
||
substep "Preparing remote repo directory ${REMOTE_REPO_DIR}." | ||
fixture_prepare_dir "${REMOTE_REPO_DIR}" | ||
git_init 1 "${REMOTE_REPO_DIR}" | ||
|
||
popd >/dev/null | ||
|
||
pushd "${CURRENT_PROJECT_DIR}" >/dev/null | ||
|
||
substep "Running deployment." | ||
# This deployment uses all 3 types. | ||
export VORTEX_DEPLOY_TYPES="artifact,webhook,container_registry" | ||
|
||
# Variables for ARTIFACT deployment. | ||
export VORTEX_DEPLOY_ARTIFACT_GIT_REMOTE="${REMOTE_REPO_DIR}"/.git | ||
export VORTEX_DEPLOY_ARTIFACT_ROOT="${CURRENT_PROJECT_DIR}" | ||
export VORTEX_DEPLOY_ARTIFACT_SRC="${SRC_DIR}" | ||
export VORTEX_DEPLOY_ARTIFACT_GIT_USER_EMAIL="${VORTEX_DEPLOY_ARTIFACT_GIT_USER_EMAIL:-testuser@example.com}" | ||
|
||
# Variables for WEBHOOK deployment. | ||
export VORTEX_DEPLOY_WEBHOOK_URL=http://example.com | ||
export VORTEX_DEPLOY_WEBHOOK_RESPONSE_STATUS=200 | ||
|
||
# Variables for container registry deployment. | ||
# @todo: Not implemented. Add here when implemented. | ||
|
||
# Run deployment. | ||
# run ahoy deploy | ||
# assert_success | ||
# | ||
|
cf51e65
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Deployed on https://66de3906b1782883f3f3da2d--vortex-docs.netlify.app