diff --git a/docs/cli.mdx b/docs/cli.mdx index a9621c470..9a7d968db 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: + main: + - 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..082290a97 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: + main: + - 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 ```