nexus auth
This commit is contained in:
parent
994212a211
commit
9b4112514c
@ -11,4 +11,3 @@ echo "index-url = https://${bamboo_nexus_user}:${bamboo_nexus_password}@nexus.iq
|
||||
docker build -f Dockerfile -t nexus.iqser.com:5001/red/$SERVICE_NAME:${bamboo_version_tag} .
|
||||
echo "${bamboo_nexus_password}" | docker login --username "${bamboo_nexus_user}" --password-stdin nexus.iqser.com:5001
|
||||
docker push nexus.iqser.com:5001/red/$SERVICE_NAME:${bamboo_version_tag}
|
||||
docker push nexus.iqser.com:5001/red/${SERVICE_NAME}_tests:${bamboo_version_tag}
|
||||
|
||||
12
run_tests.sh
12
run_tests.sh
@ -1,4 +1,5 @@
|
||||
docker build -f Dockerfile_tests -t pyinfra-tests .
|
||||
echo "${bamboo_nexus_password}" | docker login --username "${bamboo_nexus_user}" --password-stdin nexus.iqser.com:5001
|
||||
docker build -f Dockerfile_tests -t pyinfra-tests:dev .
|
||||
|
||||
source build_venv/bin/activate
|
||||
python3 -m pip install --upgrade pip
|
||||
@ -9,6 +10,9 @@ docker-compose -remove-orphans up -d
|
||||
echo "Sleeping for 30 seconds to wait for dependency containers to finish startup..."
|
||||
sleep 30s
|
||||
|
||||
docker rm /pyinfra-tests
|
||||
docker run --net=host --name pyinfra-tests pyinfra-tests
|
||||
docker cp pyinfra-tests:/app/service/reports/coverage.xml reports/coverage.xml
|
||||
rnd=$(date +"%s")
|
||||
name=pyinfra-tests-${rnd}
|
||||
|
||||
docker run --net=host --name $name pyinfra-tests:dev
|
||||
docker cp $name:/app/service/reports/coverage.xml reports/coverage.xml
|
||||
docker rm $name
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user