summary refs log tree commit diff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorPaweł Dybiec <pawel@dybiec.info>2022-12-26 00:22:30 +0000
committerPaweł Dybiec <pawel@dybiec.info>2022-12-26 00:22:30 +0000
commit1386316b37bc19f2cf34c34861ec5862df0bd9ee (patch)
tree91144e04595f422505dcd9db0defea3831ffba66 /.gitlab-ci.yml
parentAdd reply to method with example use-case (diff)
Add dockerfile and build/publish step for it
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 75e13b5..922bd2b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,6 @@
 stages:
   - build
+  - container
 
 build_and_test:
   image: rust:alpine3.16
@@ -19,3 +20,12 @@ build_and_test:
   script:
     - cargo build
     - cargo test
+container:
+  image: docker:stable
+  stage: container
+  script:
+  - docker build . -t $CI_REGISTRY_IMAGE
+  - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD  $CI_REGISTRY
+  - docker push $CI_REGISTRY_IMAGE
+
+