summary refs log tree commit diff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
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
+
+