Skip to content

Commit

Permalink
Update pre-deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jackivanov authored Jan 16, 2020
1 parent 98f43c5 commit d8c48ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/pre-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ cp -f tests/lxd-bridge /etc/default/lxd-bridge
cp -f tests/algo.conf /etc/default/algo.conf

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
bash tests/cloud-init.sh | lxc profile set default user.user-data -
Expand Down

0 comments on commit d8c48ec

Please sign in to comment.