stages: - login - build - push - deploy variables: GL_TOKEN: $GL_TOKEN VERSION: '0.2.5' deploy: stage: deploy script : sudo docker-compose --env-file /data/docker/compose-files/others.env -f /data/docker/compose-files/others.yml up -d build: stage: build script: - sudo docker build -t hub.0w.tf/milka64/kabot:$VERSION . - sudo docker build -t hub.0w.tf/milka64/kabot:latest . push: stage: push script: - sudo docker push hub.0w.tf/milka64/kabot:$VERSION - sudo docker push hub.0w.tf/milka64/kabot:latest login: stage: login script: sudo docker login -u milka64 -p $GL_TOKEN hub.0w.tf