Skip to content
Snippets Groups Projects
Commit c5542d92 authored by Jan Grewe's avatar Jan Grewe
Browse files

use OpenWISP shared secret from CI/CD variables

parent 7aebab5e
Branches
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ variables:
REMOVE_PACKAGES: dnsmasq odhcpd-ipv6only wpad-basic-mbedtls
DISABLED_SERVICES: firewall
EXTRA_IMAGE_NAME: fakedOrg
#OPENWISP_SHARED_SECRET: <from-ci-variables>
.build_image:
stage: build
......@@ -21,6 +22,7 @@ variables:
- cd /builder
script:
- export REMOVE_PACKAGES=$(for package in ${REMOVE_PACKAGES}; do echo -n "-${package} "; done)
- sed -i "s/%OPENWISP_SHARED_SECRET%/${OPENWISP_SHARED_SECRET}/" ${FILES}/etc/config/openwisp
- make image PROFILE=${PROFILE} FILES=${FILES} PACKAGES="${DEFAULT_PACKAGES} ${EXTRA_PACKAGES} ${REMOVE_PACKAGES}"
after_script:
- if [[ -d /builder/bin ]]; then mv /builder/bin .; fi
......
config controller 'http'
option url 'https://openwisp.faked.org'
option shared_secret 'fSIRdSdsqoKYhCYovE1zareJhkOKMtcL'
option shared_secret '%OPENWISP_SHARED_SECRET%'
option default_hostname 'openwrt'
option mac_interface 'br-lan'
option management_interface 'br-lan'
option verify_ssl '0'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment