From 3313976247a7c038f188fd1d9df96a0a840791ac Mon Sep 17 00:00:00 2001 From: Matthew R Date: Wed, 23 Dec 2020 13:57:12 -0500 Subject: [PATCH] add ci file --- .gitlab-ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..e016644 --- /dev/null +++ b/.gitlab-ci.yml @@ -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