From 4159b8b3a11470da05a71ff8d022af6a63051cb3 Mon Sep 17 00:00:00 2001 From: matiar Date: Thu, 3 Jul 2025 17:58:31 -0300 Subject: [PATCH 1/2] fix: ci cd documentation --- docs/cli.mdx | 41 +++++++++++-------- .../current/cli.mdx | 41 +++++++++++-------- 2 files changed, 46 insertions(+), 36 deletions(-) diff --git a/docs/cli.mdx b/docs/cli.mdx index a9621c470..c14b52384 100644 --- a/docs/cli.mdx +++ b/docs/cli.mdx @@ -110,22 +110,26 @@ stages: - deploy build: - stage: deploy + stage: build script: - - apt-get update -qy - - apt-get install -y python3-pip - - pip3 install sleakops - - sleakops build -p core -b main -w + - apt-get update -qy + - apt-get install -y python3-pip + - pip3 install sleakops + - sleakops build -p core -b main -w + rules: + - if: '$CI_COMMIT_BRANCH == main' deploy: stage: deploy needs: - build script: - - apt-get update -qy - - apt-get install -y python3-pip - - pip3 install sleakops - - sleakops deploy -p core -e main -w + - apt-get update -qy + - apt-get install -y python3-pip + - pip3 install sleakops + - sleakops deploy -p core -e prod -w + rules: + - if: '$CI_COMMIT_BRANCH == main' ``` @@ -135,15 +139,16 @@ deploy: image: python:3.9 pipelines: - default: - - step: - name: Deploy - script: - - apt-get update -qy - - apt-get install -y python3-pip - - pip3 install sleakops - - sleakops build -p core -b main -w - - sleakops deploy -p core -e main -w + branches: + master: + - step: + name: Deploy + script: + - apt-get update -qy + - apt-get install -y python3-pip + - pip3 install sleakops + - sleakops build -p core -b main -w + - sleakops deploy -p core -e main -w ``` diff --git a/i18n/es/docusaurus-plugin-content-docs/current/cli.mdx b/i18n/es/docusaurus-plugin-content-docs/current/cli.mdx index bdf134e7e..ae85de50e 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/cli.mdx +++ b/i18n/es/docusaurus-plugin-content-docs/current/cli.mdx @@ -109,22 +109,26 @@ stages: - deploy build: - stage: deploy + stage: build script: - - apt-get update -qy - - apt-get install -y python3-pip - - pip3 install sleakops - - sleakops build -p core -b main -w + - apt-get update -qy + - apt-get install -y python3-pip + - pip3 install sleakops + - sleakops build -p core -b main -w + rules: + - if: '$CI_COMMIT_BRANCH == main' deploy: stage: deploy needs: - build script: - - apt-get update -qy - - apt-get install -y python3-pip - - pip3 install sleakops - - sleakops deploy -p core -e main -w + - apt-get update -qy + - apt-get install -y python3-pip + - pip3 install sleakops + - sleakops deploy -p core -e prod -w + rules: + - if: '$CI_COMMIT_BRANCH == main' ``` @@ -134,15 +138,16 @@ deploy: image: python:3.9 pipelines: - default: - - step: - name: Deploy - script: - - apt-get update -qy - - apt-get install -y python3-pip - - pip3 install sleakops - - sleakops build -p core -b main -w - - sleakops deploy -p core -e main -w + branches: + master: + - step: + name: Deploy + script: + - apt-get update -qy + - apt-get install -y python3-pip + - pip3 install sleakops + - sleakops build -p core -b main -w + - sleakops deploy -p core -e main -w ``` From 388a529ac6e98e7ad14b28020582b5d6a5ed791a Mon Sep 17 00:00:00 2001 From: matiar Date: Thu, 3 Jul 2025 17:59:56 -0300 Subject: [PATCH 2/2] fix: --- docs/cli.mdx | 2 +- i18n/es/docusaurus-plugin-content-docs/current/cli.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cli.mdx b/docs/cli.mdx index c14b52384..9a7d968db 100644 --- a/docs/cli.mdx +++ b/docs/cli.mdx @@ -140,7 +140,7 @@ image: python:3.9 pipelines: branches: - master: + main: - step: name: Deploy script: diff --git a/i18n/es/docusaurus-plugin-content-docs/current/cli.mdx b/i18n/es/docusaurus-plugin-content-docs/current/cli.mdx index ae85de50e..082290a97 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/cli.mdx +++ b/i18n/es/docusaurus-plugin-content-docs/current/cli.mdx @@ -139,7 +139,7 @@ image: python:3.9 pipelines: branches: - master: + main: - step: name: Deploy script: