26 lines
491 B
YAML
26 lines
491 B
YAML
default:
|
|
image: docker
|
|
services:
|
|
- docker:dind
|
|
tags:
|
|
- docker
|
|
before_script:
|
|
- docker info
|
|
|
|
stages:
|
|
- build
|
|
- test
|
|
|
|
build:
|
|
stage: build
|
|
variables:
|
|
IMAGE: docker.libraryofcode.org/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
|
|
script:
|
|
- docker login -u "system" -p "$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
|