diff options
| author | mo khan <mo.khan@gmail.com> | 2020-06-16 15:48:26 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-06-16 15:48:26 -0600 |
| commit | ec285858c22890a63b6f5a50d5dbed3da7eb3919 (patch) | |
| tree | 5a27449cd1e4a40a10eb97cf9f293212c4390641 /.gitlab-ci.yml | |
| parent | 9a9149ebfae6fc6e1488bc281396b2c8cd544487 (diff) | |
Build and publish .deb artifacts
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 24 |
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 |
