mirror of
https://github.com/willfarrell/docker-autoheal.git
synced 2024-12-06 19:16:20 +01:00
Added gitlab-ci.yml to be able to build the containers in gitlab.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
image: docker:latest
|
||||
|
||||
services:
|
||||
- docker:dind
|
||||
stages:
|
||||
- build_and_deploy
|
||||
job:
|
||||
stage: build_and_deploy
|
||||
script:
|
||||
- mkdir ~/.docker
|
||||
- echo '{"experimental":"enabled"}' | tee ~/.docker/config.json
|
||||
- apk add --no-cache bash
|
||||
- ls -al ~/.docker/config.json
|
||||
- cat ~/.docker/config.json
|
||||
- bash build.sh $DOCKER_ENV_CI_PROJECT_PATH $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||
+1
-1
@@ -21,4 +21,4 @@ before_install:
|
||||
- cat ~/.docker/config.json
|
||||
|
||||
script:
|
||||
- bash build.sh $TRAVIS_REPO_SLUG $DOCKER_USERNAME $DOCKER_PASSWORD
|
||||
- bash build.sh $TRAVIS_REPO_SLUG $DOCKER_USERNAME $DOCKER_PASSWORD index.docker.io
|
||||
|
||||
Reference in New Issue
Block a user