-
-
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.
Merge branch 'develop' into feature/1126-update-ci-workspace-locations
- Loading branch information
Showing
57 changed files
with
847 additions
and
4,187 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 |
---|---|---|
|
@@ -617,91 +617,6 @@ jobs: | |
# Use custom cache key for this workflow to make sure that caches from | ||
# the main workflow are separated from this one. | ||
DREVOPS_CI_DB_CACHE_BRANCH: drevops-dev-didi-ii | ||
|
||
#----------------------------------------------------------------------------- | ||
# Publish docs to docs.drevops.com | ||
# @todo Move this to GitHub Actions. | ||
#----------------------------------------------------------------------------- | ||
drevops-dev-deploy-docs: | ||
<<: *runner_config | ||
steps: | ||
- checkout | ||
- *step_process_codebase | ||
- *step_setup_remote_docker | ||
- *step_setup_docker_network | ||
- add_ssh_keys: | ||
fingerprints: | ||
- "22:fe:71:f4:65:8d:cb:81:9c:31:09:4e:03:0b:33:b7" | ||
- run: | ||
name: Build and test docs | ||
command: | | ||
cd .drevops/docs | ||
ahoy build | ||
ahoy lint | ||
ahoy test | ||
- run: | ||
name: Publish docs | ||
command: | | ||
cd .drevops/docs | ||
export DOCS_PUBLISH_REMOTE_URL=https://github.com/drevops/drevops_docs.git | ||
export DOCS_PUBLISH_SRC_TAG=${CIRCLE_TAG:-} | ||
export DOCS_PUBLISH_SRC_BRANCH=${CIRCLE_BRANCH:-} | ||
export DOCS_PUBLISH_SSH_FINGERPRINT="22:fe:71:f4:65:8d:cb:81:9c:31:09:4e:03:0b:33:b7" | ||
export DOCS_PUBLISH_CANARY_BRANCH="develop" | ||
export DOCS_PUBLISH_COMMIT_MESSAGE="Automatically pushed from drevops/drevops" | ||
export DOCS_PUBLISH_GIT_EMAIL="[email protected]" | ||
./.utils/publish.sh | ||
#----------------------------------------------------------------------------- | ||
# Publish installer to install.drevops.com | ||
# @todo Move this to GitHub Actions. | ||
#----------------------------------------------------------------------------- | ||
drevops-dev-deploy-installer: | ||
<<: *runner_config | ||
steps: | ||
- checkout | ||
- *step_process_codebase | ||
- *step_setup_remote_docker | ||
- *step_setup_docker_network | ||
- add_ssh_keys: | ||
fingerprints: | ||
- "f6:b2:bb:a8:1d:9d:fb:03:c6:39:27:1e:71:bb:9a:9b" | ||
- run: | ||
name: Prepare installer. | ||
command: | | ||
cd .drevops/installer | ||
composer install | ||
sed -i "s/\"git-tag-ci\": \"dev\"/\"git-tag-ci\": \"${CIRCLE_TAG:-${CIRCLE_SHA1}}\"/g" box.json | ||
composer build | ||
mkdir -p /tmp/installer/docs | ||
cp .build/install.phar /tmp/installer/docs/index.html | ||
echo "install.drevops.com" > /tmp/installer/docs/CNAME | ||
- run: | ||
name: Configure SSH. | ||
command: | | ||
DEPLOY_DOCS_SSH_FINGERPRINT="f6:b2:bb:a8:1d:9d:fb:03:c6:39:27:1e:71:bb:9a:9b" | ||
# Configure SSH to configure git and SSH to connect to remote servers for deployment. | ||
[ "$(git config --global user.name)" == "" ] && git config --global user.name "Deployment robot" | ||
[ "$(git config --global user.email)" == "" ] && git config --global user.email "[email protected]" | ||
mkdir -p "${HOME}/.ssh/" | ||
echo -e "Host *\n\tStrictHostKeyChecking no\n" > "${HOME}/.ssh/config" | ||
DEPLOY_DOCS_SSH_FILE="${DEPLOY_DOCS_SSH_FINGERPRINT//:}" | ||
DEPLOY_DOCS_SSH_FILE="${HOME}/.ssh/id_rsa_${DEPLOY_DOCS_SSH_FILE//\"}" | ||
if [ -f "${DEPLOY_DOCS_SSH_FILE}" ]; then | ||
echo "Found Deploy SSH key file ${DEPLOY_DOCS_SSH_FILE}" | ||
ssh-add -D > /dev/null | ||
ssh-add "${DEPLOY_DOCS_SSH_FILE}" | ||
fi | ||
- run: | ||
name: Deploy installer | ||
command: | | ||
cd /tmp/installer | ||
git init | ||
git checkout -b main | ||
git add -A | ||
git commit -m "Automatically pushed from drevops/drevops" | ||
git remote add origin [email protected]:drevops/installer.git | ||
git push origin main --force | ||
#============================================================================= | ||
#;> DREVOPS_DEV | ||
|
||
|
@@ -812,29 +727,6 @@ workflows: | |
tags: | ||
only: /^[0-9]+(\.[0-9]+)+(-rc[0-9]+)?$/ | ||
|
||
# Build and publish DrevOps docs. | ||
- drevops-dev-deploy-docs: | ||
requires: | ||
- build | ||
- drevops-dev-test | ||
- drevops-dev-test-workflow | ||
filters: | ||
branches: | ||
# 'main' or any branch with 'docs' in the name. | ||
only: /^main$|^develop$|.*docs.*/ | ||
tags: | ||
only: /^[0-9]+(\.[0-9]+)+(-rc[0-9]+)?$/ | ||
|
||
# Publish DrevOps installer. | ||
- drevops-dev-deploy-installer: | ||
requires: | ||
- drevops-dev-test | ||
filters: | ||
branches: | ||
only: /^feature\/installer-update$/ | ||
tags: | ||
only: /^[0-9]+(\.[0-9]+)+(-rc[0-9]+)?$/ | ||
|
||
# Test workflow to test DREVOPS_DB_DOCKER_IMAGE workflow for DB from file. | ||
drevops-dev-didi-fi: | ||
jobs: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,6 +1,7 @@ | ||
{ | ||
"name": "drevops/docs", | ||
"require": { | ||
"php": ">=8.1", | ||
"alexskrypnyk/shellvar": "^0.5" | ||
}, | ||
"authors": [ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,3 +1,7 @@ | ||
.build | ||
/.build | ||
/.coverage-html | ||
/.phpunit.cache | ||
/cobertura.xml | ||
/composer.lock | ||
/vendor | ||
/vendor-bin |
Oops, something went wrong.