Skip to content
Snippets Groups Projects

Refactor deployment

Open Kalin Daskalov requested to merge refactor-deployment into main
+ 7
5
@@ -4,9 +4,8 @@ include:
variables:
RUNNER_AMD: amd64-docker
APP_HELM_NAME: cache
DOCKER_FILE: ./deployment/ci/Dockerfile
GO_VERSION: 1.22.3
GO_VERSION: 1.22.4
stages:
- test
@@ -45,14 +44,15 @@ govulncheck:
- go version
- go install golang.org/x/vuln/cmd/govulncheck@latest
- govulncheck ./...
build-dev:
extends: .docker-build-dev
stage: build
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
@@ -68,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