certificate-api/.gitlab-ci.yml

26 lines
503 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:
IMAGE_TAG: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
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