Comments (6)
Passing the platform makes more sense to me 🙂
from ci-env.
@siddharthkp - one quick question. The generic environment variables for custom
ci , how do get them?
Actually I'm thinking of using CI_REMOTE_REPO_URL
for the repo url. Please let me know if it's okay.
from ci-env.
I don't think it's useful to use repo url, platform would be better (example: github, gitlab, bitbucket, etc.)
So in the case of custom, it would be CI_PLATFORM
from ci-env.
Sorry, I didn't put my question correctly. Actually most of CI platforms provide repo url environment variable and i'm thinking of extracting the platform using regular expression. So I asked for the CI_REMOTE_REPO_URL
.
I'm thinking of using this pattern const pattern = new RegExp(/https:\/\/([a-z]+)/i)
.
from ci-env.
Ah, understood!
I think in custom CI, we follow the rule of directly asking for the information we need. So it makes more sense to ask for ci platform rather than ask for URL and then infer it.
from ci-env.
Yes, I think that will be good idea. Thanks
from ci-env.
Related Issues (10)
- Allow custom CI implementations HOT 6
- Add Codeship HOT 2
- BUG: Version 1.5.1 fails in CircleCI 2 when reading CI_PULL_REQUEST HOT 3
- Add Buildkite
- Add Azure Pipelines HOT 2
- branch not returning the expected value for GitHub Actions
- Add `base_branch` to exported envs HOT 5
- Read domain and prefix paths from CI ENVs HOT 1
- Add WoodpeckerCI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ci-env.