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

Source .env file in setup-openappstack job

parent 2e33af7b
No related branches found
No related tags found
No related merge requests found
......@@ -306,10 +306,9 @@ 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
# export IP_ADDRESS and FQDN vars
- source clusters/${CI_COMMIT_REF_SLUG}/.cluster.env
- sed "s/1.2.3.4/$IP_ADDRESS/; s/example.org/$FQDN/; s/acme_staging=false/acme_staging=true/; s/acme-staging/acme/" install/.env.example >> clusters/${CI_COMMIT_REF_SLUG}/.cluster.env
- source clusters/${CI_COMMIT_REF_SLUG}/.cluster.env
# Customize env file, remove all comments and empty lines
- sed "s/1.2.3.4/$IP_ADDRESS/; s/example.org/$FQDN/; s/acme_staging=false/acme_staging=true/; s/acme-staging/acme/; /^\s*#.*$/d; /^\s*$/d" install/.env.example >> clusters/${CI_COMMIT_REF_SLUG}/.flux.env
- set -o allexport; source clusters/${CI_COMMIT_REF_SLUG}/.flux.env; set +o allexport
- bash ./install/install-openappstack.sh
# TODO: Should also be removed or made up-to-date
# Show versions of installed apps/binaries
......
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