From 705b15279cc4c1446bfe5f3098f43bb32e7e972b Mon Sep 17 00:00:00 2001 From: Yana Kernerman <kernerya@gmail.com> Date: Sat, 17 Aug 2024 16:34:24 +0200 Subject: [PATCH] trigger pipeline --- .gitlab-ci.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9dc95d1..bebce5f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,9 @@ workflow: - rules: - - if: $CI_PIPELINE_SOURCE == "merge_request_event" - when: 'always' - - if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_REF_NAME =~/main/ - - when: 'never' +# rules: +# - if: $CI_PIPELINE_SOURCE == "merge_request_event" +# when: 'always' +# - if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_REF_NAME =~/main/ +# - when: 'never' stages: - test @@ -20,9 +20,9 @@ job_test_the_code: job_build_artifact: stage: build - rules: # Conditions under which this job should run - - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" # Run this job only for merge request event into main. - when: always +# rules: # Conditions under which this job should run +# - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" # Run this job only for merge request event into main. +# when: always image: registry.hub.docker.com/library/golang:1.21 script: - go get -t ./... # Installs dependencies @@ -34,9 +34,9 @@ job_build_artifact: job_build_and_publish_image: stage: publish - rules: # Conditions under which this job should run - - if: $CI_PIPELINE_SOURCE == "push" && $CI_MERGE_COMMIT_REF_NAME =~ /main/ # Run this job only for merge request event into main. - when: always +# rules: # Conditions under which this job should run +# - if: $CI_PIPELINE_SOURCE == "push" && $CI_MERGE_COMMIT_REF_NAME =~ /main/ # Run this job only for merge request event into main. +# when: always image: docker:24.0.0 # Official Docker image with Docker client installed services: - docker:24.0.0-dind # used to access the Docker daemon from within the CI job. -- GitLab