diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..94c2f061cf492a0146f132e8d6670d38150567a2 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +image: docker + +services: + - docker:dind + +stages: + - deploy + +step-deploy-prod: + stage: deploy + only: + - master + script: + - sudo apt-get install -y python-pip + - sudo pip install docker-compose + - sudo docker image prune -f + - sudo docker-compose build --no-cache + - sudo docker-compose up -d + environment: master \ No newline at end of file