Gitlab CICD: Pipeline pending/stuck due to tag

Viewed 40

I have problem with gitlab cicd - yml file

Here's what I'm aiming, When I release tag on main/master pipeline should run but in my case its stuck.

my sample yml code:

stages:
  - build
  - test
  - deploy

build-1-build:
  stage: build
  tags:
    - docker 
    - test-runner
  script:
    - git status
    - echo "Hello, $GITLAB_USER_LOGIN!"
    - export
  only:
      refs:
        - tags
  when: manual

Here's my runner settings

Image1

image2

and the pipeline

Pipeline status

I tried also the $CI_COMMIT_TAG and still when I run the pipeline stuck.

What should I edit or check to fix the problem?

0 Answers
Related