20 lines
500 B
YAML
20 lines
500 B
YAML
|
|
stages: # List of stages for jobs, and their order of execution
|
|
- deploy
|
|
|
|
|
|
deploy-job: # This job runs in the deploy stage.
|
|
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
|
|
image: docker:latest
|
|
services:
|
|
- name: docker:dind
|
|
alias: docker
|
|
variables:
|
|
DOCKER_DRIVER: overlay2
|
|
DOCKER_HOST: tcp://docker:2375
|
|
DOCKER_TLS_CERTDIR: ""
|
|
environment: production
|
|
script:
|
|
- sudo docker compose up -d
|
|
tags:
|
|
- media |