Skip to content
Snippets Groups Projects
Commit 9a8420b8 authored by Neil-Jocelyn Schark's avatar Neil-Jocelyn Schark
Browse files

Unify pipeline

See merge request !289
parent 4016da44
No related branches found
No related tags found
2 merge requests!289Unify pipeline,!264WIP: Develop
Pipeline #99499 failed
......@@ -4,6 +4,10 @@ variables:
CEOS_IMAGE: "${CI_PCONTAINERS_REGISTRY_IMAGE}/ceos:4.28.0F"
GOLANG_VERSION: "1.18"
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == 'push'
stages:
- build
- test
......
......@@ -27,8 +27,6 @@ build-testing-image:
build-image:
rules:
- if: '$CI_PIPELINE_SOURCE != "merge_request_event"'
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
variables:
TAG: $CI_DEFAULT_BRANCH
......
......@@ -5,10 +5,6 @@ variables:
containerlab-deploy:
stage: integration-test
rules:
- if: '$CI_PIPELINE_SOURCE != "merge_request_event"'
when: never
- when: on_success
tags:
- shell-containerlab
needs: ["build-image", "build-testing-image"]
......@@ -43,10 +39,6 @@ containerlab-deploy:
containerlab-destroy:
rules:
- if: '$CI_PIPELINE_SOURCE != "merge_request_event"'
when: never
- when: always
stage: integration-test
tags:
- shell-containerlab
......
.integration-test: &integration-test
image: $GOSDN_TESTING_IMAGE
stage: integration-test
rules:
- if: '$CI_PIPELINE_SOURCE != "merge_request_event"'
when: never
- when: on_success
needs:
["containerlab-deploy"]
variables:
......
.rules: &rules
stage: analyze
rules:
- if: '$CI_PIPELINE_SOURCE != "merge_request_event"'
when: never
- when: always
needs: []
sast:
......@@ -36,10 +32,6 @@ semgrep-sast:
container_scanning:
stage: analyze
rules:
- if: '$CI_PIPELINE_SOURCE != "merge_request_event"'
when: never
- when: always
variables:
DOCKER_IMAGE: "${GOSDN_IMAGE}"
DOCKER_USER: "${CI_REGISTRY_USER}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment