From f7881ab18273a62d63eb7f1a460e7b0d5ad4e81b Mon Sep 17 00:00:00 2001 From: Lene Wasskog <lene.wasskog@nibio.no> Date: Tue, 7 Jan 2025 16:50:19 +0100 Subject: [PATCH] chore: Use only main branch for ci/cd, make deploy step manual --- .gitlab-ci.yml | 5 +++-- README.md | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f495706..4c00b30 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,7 @@ stages: variables: ENV_FILE: ".env" -deploy_to_remote_server: +deployment: stage: deploy tags: - python @@ -45,4 +45,5 @@ deploy_to_remote_server: # Make run script executable - ssh $SERVER_USER@$SERVER_IP "chmod 755 $HOME_DIR/run_ADASMELIAE.sh" only: - - release + - main + when: manual diff --git a/README.md b/README.md index a9465fc..e1486cc 100644 --- a/README.md +++ b/README.md @@ -92,3 +92,7 @@ _Warning status example. Showing Europe and the surrounding areas._  _Temperature example. Showing Europe and the surrounding areas._ + +## CI/CD + +The project contains one long-living branch: `main`. Deployment to the server can be performed by triggering the manual step `deployment` in the Gitlab pipeline. -- GitLab