Testing pipeline
parent
698e8bc5f7
commit
4edfa72326
|
@ -1,13 +1,13 @@
|
||||||
stages:
|
stages:
|
||||||
- test
|
- build
|
||||||
- release
|
- release
|
||||||
|
|
||||||
# Test if the image can be built
|
# Test if the image can be built
|
||||||
test:build:
|
test:build:
|
||||||
stage: test
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- test
|
|
||||||
- build
|
- build
|
||||||
|
- test
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
script:
|
script:
|
||||||
- docker build .
|
- docker build .
|
||||||
|
@ -17,10 +17,10 @@ test:build:
|
||||||
|
|
||||||
# Push images of tags to private registry
|
# Push images of tags to private registry
|
||||||
release:image:
|
release:image:
|
||||||
stage: release
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- release
|
|
||||||
- build
|
- build
|
||||||
|
- release
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
script:
|
script:
|
||||||
- docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}" "${DOCKER_REGISTRY_HOST}"
|
- docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}" "${DOCKER_REGISTRY_HOST}"
|
||||||
|
|
Loading…
Reference in New Issue