cleanup gitlab config
This commit is contained in:
parent
923e5f4695
commit
e686c25310
1 changed files with 5 additions and 7 deletions
|
@ -1,8 +1,4 @@
|
||||||
.image:
|
.image:
|
||||||
stage: build
|
|
||||||
image: docker:stable
|
|
||||||
services:
|
|
||||||
- docker:dind
|
|
||||||
before_script:
|
before_script:
|
||||||
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
|
||||||
script:
|
script:
|
||||||
|
@ -10,6 +6,10 @@
|
||||||
- docker build --cache-from $CONTAINER_IMAGE:latest --tag $CONTAINER_IMAGE:$CI_COMMIT_SHA --tag $CONTAINER_IMAGE:latest ./$OS_NAME/
|
- docker build --cache-from $CONTAINER_IMAGE:latest --tag $CONTAINER_IMAGE:$CI_COMMIT_SHA --tag $CONTAINER_IMAGE:latest ./$OS_NAME/
|
||||||
- docker push $CONTAINER_IMAGE:$CI_COMMIT_SHA
|
- docker push $CONTAINER_IMAGE:$CI_COMMIT_SHA
|
||||||
- docker push $CONTAINER_IMAGE:latest
|
- docker push $CONTAINER_IMAGE:latest
|
||||||
|
stage: build
|
||||||
|
image: docker:stable
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
variables:
|
variables:
|
||||||
DOCKER_HOST: tcp://docker:2375/
|
DOCKER_HOST: tcp://docker:2375/
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
|
@ -30,16 +30,14 @@ image:ubuntu:
|
||||||
- apk add bash
|
- apk add bash
|
||||||
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
|
||||||
script: ./test.sh
|
script: ./test.sh
|
||||||
|
stage: test
|
||||||
image: docker:stable
|
image: docker:stable
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
variables:
|
variables:
|
||||||
DETECTED_OS: fedora:29
|
|
||||||
DOCKER_IMAGE: registry.gitlab.com/$CI_PROJECT_PATH/$OS_NAME:$CI_COMMIT_SHA
|
DOCKER_IMAGE: registry.gitlab.com/$CI_PROJECT_PATH/$OS_NAME:$CI_COMMIT_SHA
|
||||||
DOCKER_HOST: tcp://docker:2375/
|
DOCKER_HOST: tcp://docker:2375/
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
dependencies:
|
|
||||||
- image:fedora
|
|
||||||
|
|
||||||
fedora:
|
fedora:
|
||||||
extends: .test
|
extends: .test
|
||||||
|
|
Loading…
Reference in a new issue