Testing pipeline

pull/1/head
Gertjan Krol 2022-01-22 00:50:12 +01:00
parent 4edfa72326
commit 475b35fca0
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,5 @@
stages: stages:
- test
- build - build
- release - release
@ -8,7 +9,7 @@ test:build:
tags: tags:
- build - build
- test - test
image: docker:latest image: docker:stable
script: script:
- docker build . - docker build .
interruptible: true interruptible: true
@ -17,11 +18,11 @@ test:build:
# Push images of tags to private registry # Push images of tags to private registry
release:image: release:image:
stage: build stage: release
tags: tags:
- build - build
- release - release
image: docker:latest image: docker:stable
script: script:
- docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}" "${DOCKER_REGISTRY_HOST}" - docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}" "${DOCKER_REGISTRY_HOST}"
- echo "Building image..." - echo "Building image..."