Commit a7a30df0 authored by Nicolas Steinmetz's avatar Nicolas Steinmetz

add gitlab-ci

parent a737dfdd
Pipeline #302 passed with stage
in 5 minutes and 52 seconds
---
stages:
- build
docker:
stage: build
image: docker:stable
services:
- docker:dind
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
GRAV_IMAGE: $CI_REGISTRY_IMAGE/grav:$CI_COMMIT_SHORT_SHA
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
script:
- cd app
- docker build --pull -t $GRAV_IMAGE .
- docker push $GRAV_IMAGE
when: on_success
tags:
- docker
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment