stages: - build - deploy build: stage: build script: - docker build . -t "cmc:latest" deploy_staging: stage: deploy script: - echo "Run the new docker image" - /home/cmc/cmc-sales/run_docker.sh environment: name: staging only: - master