Testing pipeline

pull/1/head
Gertjan Krol 2022-01-22 00:25:59 +01:00
parent 698e8bc5f7
commit 4edfa72326
1 changed files with 5 additions and 5 deletions

View File

@ -1,13 +1,13 @@
stages:
- test
- build
- release
# Test if the image can be built
test:build:
stage: test
stage: build
tags:
- test
- build
- test
image: docker:latest
script:
- docker build .
@ -17,10 +17,10 @@ test:build:
# Push images of tags to private registry
release:image:
stage: release
stage: build
tags:
- release
- build
- release
image: docker:latest
script:
- docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}" "${DOCKER_REGISTRY_HOST}"