Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include:template: field #37

Closed
firecow opened this issue Nov 10, 2020 · 4 comments
Closed

include:template: field #37

firecow opened this issue Nov 10, 2020 · 4 comments
Labels
feature Feature missing according to gitlab ci standard

Comments

@firecow
Copy link
Owner

firecow commented Nov 10, 2020

No description provided.

@firecow firecow added the feature Feature missing according to gitlab ci standard label Nov 10, 2020
@firecow firecow changed the title Support for include:template: Implement include:template: Nov 10, 2020
@firecow firecow changed the title Implement include:template: include:template: field Jan 6, 2021
@mjrider
Copy link

mjrider commented Mar 14, 2021

i"m hitting this issue, because i use merge requests pipelines.
https://docs.gitlab.com/13.8/ee/ci/yaml/#workflowrules-templates
a partial implementation could be that when the template value is one of the documented values of gitlab self, that the include is ignored because it has no impact on the joblist

@firecow
Copy link
Owner Author

firecow commented Mar 14, 2021

Can you paste a minimal .gitlab-ci.yml that illustrates your needs? @mjrider
I'm sure i'll be able to implement include:template pretty fast, since they are basicly just a preset URL of regular remote includes.

@mjrider
Copy link

mjrider commented Mar 14, 2021

Something like this

---

include:
  - template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'

foobar:
  image: alpine:latest
  stage: test
  script:
    - echo "foobar"
  

@firecow
Copy link
Owner Author

firecow commented Mar 15, 2021

#95 Closing this issue, since a pull request have been made, and will hit master shortly.
@mjrider

@firecow firecow closed this as completed Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature missing according to gitlab ci standard
Projects
None yet
Development

No branches or pull requests

2 participants