Fix typo, add test for v2 secret key in env, fix docker build scripts

This commit is contained in:
Christophe Mehay 2019-08-03 16:33:21 +02:00
parent 24c65843c3
commit 7bed3974f0
13 changed files with 108 additions and 18 deletions

View file

@ -1,3 +1,5 @@
#!/bin/bash
v1="${SOURCE_BRANCH%-*}"
tor_version=${v1:1}
docker build --build-arg tor_version=${SOURCE_BRANCH:1} -f $DOCKERFILE_PATH -t $IMAGE_NAME .
docker build --build-arg tor_version=${tor_version} -f $DOCKERFILE_PATH -t $IMAGE_NAME .

View file

@ -1,4 +1,4 @@
#!/bin/bash
docker tag $IMAGE_NAME ${repoName}:latest
docker push ${repoName}:latest
docker tag $IMAGE_NAME ${DOCKER_REPO}:latest
docker push ${DOCKER_REPO}:latest