Commit ead440d5 authored by kaiyou's avatar kaiyou Committed by ayiniho
Browse files

Add a gitlab build

parent cafc0930
mage: alpine:latest
variables:
DOCKER_ORG=mailu
stages:
- build
- cleanup
build:
stage: build
image: docker:stable-git
services:
- docker:stable-dind
script:
- export DOCKER_HOST='tcp://localhost:2375'
- curl -L https://github.com/docker/compose/releases/download/1.23.0-rc3/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
- chmod +x /usr/local/bin/docker-compose
- docker-compose -f tests/build.yml build
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
- docker-compose -f tests/build.yml push
only:
- branches
Supports Markdown
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