2020-12-23 13:57:12 -05:00
|
|
|
default:
|
|
|
|
image: docker
|
2020-12-23 14:03:39 -05:00
|
|
|
services:
|
|
|
|
- docker:dind
|
2020-12-23 13:59:45 -05:00
|
|
|
tags:
|
|
|
|
- docker
|
2020-12-23 13:57:12 -05:00
|
|
|
before_script:
|
|
|
|
- docker info
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- test
|
|
|
|
|
|
|
|
build:
|
|
|
|
stage: build
|
|
|
|
variables:
|
2020-12-23 14:38:32 -05:00
|
|
|
IMAGE: docker.libraryofcode.org/engineering/certificate-api/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
|
2020-12-23 13:57:12 -05:00
|
|
|
script:
|
2020-12-23 14:36:06 -05:00
|
|
|
- docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASSWORD" docker.libraryofcode.org
|
2020-12-23 13:57:12 -05:00
|
|
|
- docker build -t $IMAGE .
|
|
|
|
- docker push $IMAGE
|
|
|
|
|
|
|
|
include:
|
|
|
|
- template: Dependency-Scanning.gitlab-ci.yml
|
|
|
|
- template: Container-Scanning.gitlab-ci.yml
|