summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..3fc754e
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,24 @@
+stages:
+ - build
+ - release
+
+variables:
+ TMP_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
+
+build-docker-image:
+ image: docker:stable
+ stage: build
+ services:
+ - docker:stable-dind
+ script:
+ - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
+ - docker build -t $TMP_IMAGE .
+ - docker push $TMP_IMAGE
+
+release-deb:
+ image: $TMP_IMAGE
+ stage: release
+ artifacts:
+ paths:
+ - /opt/asdf
+ expire_in: 1 week