Skip to content
Snippets Groups Projects
Unverified Commit a2a7b20b authored by Varac's avatar Varac
Browse files

Deploy from CI container, not from host

parent 4781cdc7
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,7 @@ include:
reports:
dotenv:
$CLUSTER_DIR/.cluster.env
$CLUSTER_DIR/.env
# Rules that enable the cluster to be built and are applied to most steps
# (except for application-specific steps)
......@@ -306,9 +307,10 @@ setup-openappstack:
# Set up cluster
# TODO: I set --no-install-openappstack to skip the old installation procedure, should be removed eventually
- python3 -m openappstack $HOSTNAME install --install-kubernetes --no-install-openappstack
- scp -r ./install root@${FQDN}:/tmp/install
- ssh ${FQDN} -l root "/usr/bin/env /tmp/install/ci-write-variable-files.sh $IP_ADDRESS ${FQDN}"
- ssh ${FQDN} -l root "/usr/bin/env /tmp/install/install-openappstack.sh"
- cp install/.env.example clusters/${CI_COMMIT_REF_SLUG}/.env
- sed "s/1.2.3.4/$IP_ADDRESS/; s/example.org/$FQDN/" clusters/${CI_COMMIT_REF_SLUG}/.env
- source clusters/${CI_COMMIT_REF_SLUG}/.env
- install/install-openappstack.sh
# TODO: Should also be removed or made up-to-date
# Show versions of installed apps/binaries
# - cd ansible
......@@ -426,7 +428,7 @@ single-sign-on-helm-release:
stage: install-apps
script:
- *debug_information
- ssh ${FQDN} -l root "/usr/bin/env /tmp/install/install-${APP}.sh"
- install/install-${APP}.sh
extends:
- .ssh_setup
interruptible: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment