Pass name and password as env variables

This commit is contained in:
Benjamin Bohard 2018-05-14 16:38:46 +02:00
parent 52a5e442e1
commit df9e8934ab
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ then
mkdir "${GPG_FOLDER}" mkdir "${GPG_FOLDER}"
fi fi
container_id=$(docker run -d -v ${PACKAGES_FOLDER}:/packages -v ${GPG_FOLDER}:/signing-key -p $PORT:8080 cadoles/aptly:dev) container_id=$(docker run -d -v ${PACKAGES_FOLDER}:/packages -v ${GPG_FOLDER}:/signing-key -p $PORT:8080 -e USER_EMAIL="$(git config user.email)" -e USER_NAME="$(git config user.name)" -e PASSPHRASE="$(pwgen -1 -n 20)" cadoles/aptly:dev)
docker ps -q --no-trunc | grep -q ${container_id} docker ps -q --no-trunc | grep -q ${container_id}
res=$? res=$?