nexus auth

This commit is contained in:
Matthias Bisping 2022-03-18 13:44:12 +01:00
parent 994212a211
commit 9b4112514c
2 changed files with 8 additions and 5 deletions

View File

@ -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}

View File

@ -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