add ci file
parent
fc10891459
commit
3313976247
|
@ -0,0 +1,21 @@
|
||||||
|
default:
|
||||||
|
image: docker
|
||||||
|
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
|
Loading…
Reference in New Issue