Skip to content

Instantly share code, notes, and snippets.

@jmoz
Created March 1, 2023 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmoz/17c1060cc2344e2662ea159a1cfd825c to your computer and use it in GitHub Desktop.
Save jmoz/17c1060cc2344e2662ea159a1cfd825c to your computer and use it in GitHub Desktop.
Minimal .gitlab-ci.yml to run tests via docker
image: docker/compose:latest
services:
- docker:dind
stages:
- build
- test
- deploy
before_script:
- docker info
- docker-compose --version
build-job:
stage: build
script:
- docker-compose build
unittest-job:
stage: test
script:
- docker-compose run shogunbt python -m unittest
deploy-job:
stage: deploy
environment: production
script:
- echo "Deploying application..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment