certificate-api/.gitlab-ci.yml

26 lines
505 B
YAML
Raw Normal View History

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:19:08 -05:00
IMAGE: docker.libraryofcode.org/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
2020-12-23 13:57:12 -05:00
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" docker.libraryofcode.org
- docker build -t $IMAGE .
- docker push $IMAGE
include:
- template: Dependency-Scanning.gitlab-ci.yml
- template: Container-Scanning.gitlab-ci.yml