2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2025-01-24 07:38:33 +00:00

ci: docker login only before building images

This commit is contained in:
Revant Nandgaonkar 2020-02-21 17:35:26 +05:30
parent 1cc7c7050f
commit 5bd812ccdd

View File

@ -6,10 +6,12 @@ services:
- docker - docker
before_install: before_install:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin - if [ $BUILD != "development"]; then
- sudo apt-get update && sudo apt-get -y install git echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
sudo apt-get update && sudo apt-get -y install git
fi
- if [ $BUILD == "development" ];then - if [ $BUILD == "development" ];then
sudo apt-get -y install docker-compose; sudo apt-get update && sudo apt-get -y install docker-compose;
fi fi
install: install: