Skip to content
Snippets Groups Projects

Tut01 - test new pipeline variante

Closed Yana Kernerman requested to merge s92604/devops-webservice:tut01 into main
1 file
+ 10
1
Compare changes
  • Side-by-side
  • Inline
+ 10
1
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: always
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "main"
when: always
- when: never
stages:
- test
- build
@@ -15,7 +23,8 @@ job_test_the_code:
job_build_artifact:
stage: build
rules:
- when: always
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_REF_NAME =~ /main/
when: always
image: registry.hub.docker.com/library/golang:1.21
script:
- go get -t ./...
Loading