[英]Why my delpoy stage was not recognizedin gitlab-ci.yml?
Pipeline passed OK.管道通过 OK。 The first two are Ruby jobs,the last the Python but should cause any issues.
前两个是 Ruby 工作,最后一个是 Python,但应该会引起任何问题。
.gitlab-ci.yml .gitlab-ci.yml
image: ruby:2.6
variables:
JEKYLL_ENV: production
LC_ALL: C.UTF-8
before_script:
- gem install bundler
- bundle install
stages:
- test
- build
- deploy
qa_test:
....
qa_build:
....
qa_deploy:
image : python-latest
tags:
- docker
stage: deploy
environment:
name : qa
before_script:
- pip install awscli
script:
- aws s3 cp ./qa s3://gitlab-jekyll-mycontainer/ --recursive
artifacts:
paths:
- aq
only:
- except
First two stages passed,but it didn't try to run the deploy stage.前两个阶段通过了,但它没有尝试运行部署阶段。
Why?
为什么?
only:
- except
means the job will only run if you have a branch named except
.意味着只有当您有一个名为
except
的分支时,作业才会运行。
Create this branch or remove the only
keyword to enable the job to run for all branches.创建此分支或删除
only
关键字以使作业能够为所有分支运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.