Jenkinsfile and xai cli for nextcloud deployment

This commit is contained in:
2020-06-13 07:40:42 -04:00
parent a065a8207e
commit 7683000a2f
30 changed files with 449 additions and 232 deletions

View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -ex
export DOCKER_HOST=${DOCKER_HOST:-'dkhost:2376'}
container=$(docker ps -qn1)
while getopts c: name
do
case $name in
c)
container=$OPTARG
;;
*)
;;
esac
done
shift $((OPTIND -1))
# shellcheck disable=SC2068
docker exec -it -u www-data "$container" php occ $@