diff options
author | Patrick Spek <p.spek@tyil.nl> | 2019-11-01 13:21:37 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2019-11-01 13:21:37 +0100 |
commit | 059cddf9f557b827b21803c9dac61066e07a336e (patch) | |
tree | 791dfc1b8522f9ca282a7881f7ec40a830e460fb /.gitlab-ci.yml | |
parent | 4786bf0c5ebb74fc51deab33b4b82230d455fac9 (diff) |
Add Dockerfile
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fdf25e4..e0294a1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ stages: - Package - Build - Test + - Release Tarball: stage: Package @@ -60,5 +61,14 @@ Community Modules: script: - make modules-test -# TODO: Release an updated Docker container +Docker: + stage: Release + image: docker:stable + services: + - docker:dind + before_script: + - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY + - docker build --build-arg "VERSION=$CI_COMMIT_REF_NAME" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME" . + - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME" + # TODO: Release the tarball to some Raku server |