Add gitlab pipeline
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- deploy
|
||||||
|
|
||||||
|
variables:
|
||||||
|
DOCKER_HOST: tcp://docker:2375/
|
||||||
|
|
||||||
|
image: registry.gitlab.com/sparetimecoders/build-tools
|
||||||
|
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
|
script:
|
||||||
|
- build
|
||||||
|
- push
|
||||||
|
|
||||||
|
deploy-to-prod:
|
||||||
|
stage: deploy
|
||||||
|
when: on_success
|
||||||
|
script:
|
||||||
|
- echo Deploy to PROD.
|
||||||
|
- deploy prod
|
||||||
|
environment:
|
||||||
|
name: prod
|
||||||
|
only:
|
||||||
|
- master
|
||||||
Reference in New Issue
Block a user