summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-04-20 22:25:22 -0600
committermo khan <mo.khan@gmail.com>2020-04-20 22:25:22 -0600
commit83ac7915f00d120f09db42ca60316dc745c73cc9 (patch)
tree28fde141fdc7ab2ef6e3a5611d074785c0459d53 /.gitlab-ci.yml
parent685f2f5b80222d6b7079c59bfd5b1c5df0e0337e (diff)
Build minimal image
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..e53243c
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,26 @@
+variables:
+ TMP_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
+
+include:
+ - local: .gitlab/test.yml
+
+stages:
+ - build
+ - test
+ - tag
+ - release
+
+default:
+ image: $TMP_IMAGE
+
+build commit:
+ image: docker:stable
+ stage: build
+ services:
+ - docker:stable-dind
+ script:
+ - docker info
+ - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
+ - docker build -t $TMP_IMAGE .
+ - docker image inspect $TMP_IMAGE --format='{{.Size}}'
+ - docker push $TMP_IMAGE