From b1f32c0a271ffc29631f37eebee4c7c71c54fe15 Mon Sep 17 00:00:00 2001
From: Frank Sauerburger <frank@sauerburger.com>
Date: Wed, 27 Nov 2024 23:20:20 +0100
Subject: [PATCH] Export binary as artifact

---
 .gitlab-ci.yml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 853a4f6..6462a5e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,7 @@
 stages:
   - test
   - build
+  - deploy
 
 test:
   image: rust:1.82.0-slim-bookworm
@@ -10,3 +11,15 @@ test:
 
 include:
   - component: gitlab.sauerburger.com/sauerburger-it/devops/kaniko-build@0.2.1-alpha
+
+deploy:
+  image: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
+  stage: deploy
+  variables:
+    GIT_STRATEGY: none
+  script:
+    - cp /bin/tcpjunction .
+  artifacts:
+    paths:
+      - tcpjunction
+    expire_in: 30 days
-- 
GitLab