Update pre-deploy.sh

This commit is contained in:
Jack Ivanov 2020-01-16 13:24:23 +01:00 committed by GitHub
parent 98f43c5cbd
commit d8c48ec505
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,8 @@ cp -f tests/lxd-bridge /etc/default/lxd-bridge
cp -f tests/algo.conf /etc/default/algo.conf cp -f tests/algo.conf /etc/default/algo.conf
export REPOSITORY=${REPOSITORY:-${GITHUB_REPOSITORY}} export REPOSITORY=${REPOSITORY:-${GITHUB_REPOSITORY}}
export BRANCH=${BRANCH:-${GITHUB_REF#refs/heads/}} export _BRANCH=${BRANCH#refs/heads/}
export BRANCH=${_BRANCH:-${GITHUB_REF#refs/heads/}}
if [[ "$DEPLOY" == "cloud-init" ]]; then if [[ "$DEPLOY" == "cloud-init" ]]; then
bash tests/cloud-init.sh | lxc profile set default user.user-data - bash tests/cloud-init.sh | lxc profile set default user.user-data -