Skip to content
Snippets Groups Projects

Refactor deployment

Open Kalin Daskalov requested to merge refactor-deployment into main
+ 6
3
@@ -5,7 +5,7 @@ include:
variables:
RUNNER_AMD: amd64-docker
DOCKER_FILE: ./deployment/ci/Dockerfile
GO_VERSION: 1.22.3
GO_VERSION: 1.22.4
stages:
- test
@@ -51,7 +51,8 @@ build-dev:
tags:
- $RUNNER_AMD
rules:
- if: '$CI_COMMIT_BRANCH != "main" && $CI_PIPELINE_SOURCE != "merge_request_event"'
# Only run if the branch is not main, the pipeline is not triggered by a merge request and the commit is not a tag
- if: '$CI_COMMIT_BRANCH != "main" && $CI_PIPELINE_SOURCE != "merge_request_event" && $CI_COMMIT_TAG == null'
build-stg:
extends: .docker-build-dev
@@ -67,7 +68,9 @@ deploy-dev:
needs:
- job: build-dev
rules:
- if: '$CI_COMMIT_BRANCH != "main" && $CI_PIPELINE_SOURCE != "merge_request_event"'
# Only run if the branch is not main, the pipeline is not triggered by a merge request and the commit is not a tag
- if: '$CI_COMMIT_BRANCH != "main" && $CI_PIPELINE_SOURCE != "merge_request_event" && $CI_COMMIT_TAG == null'
deploy-stg:
extends: .deploy-stg
Loading