2019-02-26 12:11:03 +01:00
|
|
|
image: openwrtorg/packages-cci
|
|
|
|
|
|
|
|
variables:
|
2019-02-26 20:37:30 +01:00
|
|
|
SDK_HOST: "downloads.openwrt.org"
|
|
|
|
SDK_PATH: "releases/18.06.2/targets/ar71xx/generic"
|
|
|
|
SDK_FILE: "openwrt-sdk-*ar71xx-generic_*.Linux-x86_64.tar.xz"
|
|
|
|
|
2019-02-26 12:11:03 +01:00
|
|
|
stages:
|
2019-02-26 20:37:30 +01:00
|
|
|
- compile
|
|
|
|
- deploy
|
2019-02-26 12:11:03 +01:00
|
|
|
|
|
|
|
compile:
|
2019-02-26 20:37:30 +01:00
|
|
|
stage: compile
|
|
|
|
script:
|
|
|
|
- echo "==== Download the SDK ===="
|
|
|
|
- .ci/download_sdk.sh
|
|
|
|
- echo "==== Prepare build_dir ===="
|
|
|
|
- .ci/prepare_build_dir.sh
|
|
|
|
- echo "==== build packages ===="
|
|
|
|
- .ci/build_pkgs.sh
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- build_dir/bin/packages
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
stage: deploy
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
script:
|
|
|
|
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
|
|
|
|
- eval $(ssh-agent -s)
|
|
|
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
|
|
|
- sleep 10
|
|
|
|
- .ci/deploy.sh flur.hotoho.n.sum7.eu wifictld
|
|
|
|
- .ci/deploy.sh flur.hotoho.n.sum7.eu respondd-module-wifictld
|
|
|
|
- ssh -6 -o StrictHostKeyChecking=no "root@flur.hotoho.n.sum7.eu" /etc/init.d/gluon-respondd restart
|
|
|
|
- .ci/deploy.sh harry.hotoho.n.sum7.eu wifictld
|
|
|
|
- .ci/deploy.sh harry.hotoho.n.sum7.eu respondd-module-wifictld
|
|
|
|
- ssh -6 -o StrictHostKeyChecking=no "root@harry.hotoho.n.sum7.eu" /etc/init.d/gluon-respondd restart
|