From d8f8d2013293d8b586a4da5b837e396d7d9f4e54 Mon Sep 17 00:00:00 2001
From: yago yudi <yyvf@pm.me>
Date: Fri, 28 Mar 2025 11:04:08 -0300
Subject: [PATCH] feat: ci

---
 .gitlab-ci.yml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..bf0b653
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,18 @@
+stages:
+  - build
+  - deploy
+
+build:
+  stage: build
+  image:
+    name: gcr.io/kaniko-project/executor:v1.23.2-debug
+    entrypoint: [""]
+  script:
+    - echo "{\"auths\":{\"harbor.c3sl.ufpr.br\":{\"username\":\"$HARBOR_USER\",\"password\":\"$HARBOR_PASSWORD\"}}}" > /kaniko/.docker/config.json
+    - /kaniko/executor --context . --destination harbor.c3sl.ufpr.br/root/docs --cache=true --dockerfile "${CI_PROJECT_DIR}/Dockerfile"
+
+deploy:
+  stage: deploy
+  image: bitnami/kubectl:latest
+  script:
+    - kubectl --kubeconfig $KUBECONFIG rollout restart deploy rootdocs -n rootdocs
-- 
GitLab