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:
parent
1cc7c7050f
commit
5bd812ccdd
@ -6,10 +6,12 @@ services:
|
||||
- docker
|
||||
|
||||
before_install:
|
||||
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||
- sudo apt-get update && sudo apt-get -y install git
|
||||
- if [ $BUILD != "development"]; then
|
||||
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
|
||||
sudo apt-get -y install docker-compose;
|
||||
sudo apt-get update && sudo apt-get -y install docker-compose;
|
||||
fi
|
||||
|
||||
install:
|
||||
|
Loading…
x
Reference in New Issue
Block a user