GithubHelp home page GithubHelp logo

repository hosting platform about ci-env HOT 6 OPEN

vs1682 avatar vs1682 commented on May 19, 2024
repository hosting platform

from ci-env.

Comments (6)

siddharthkp avatar siddharthkp commented on May 19, 2024

Passing the platform makes more sense to me 🙂

from ci-env.

vs1682 avatar vs1682 commented on May 19, 2024

@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.

siddharthkp avatar siddharthkp commented on May 19, 2024

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.

vs1682 avatar vs1682 commented on May 19, 2024

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.

siddharthkp avatar siddharthkp commented on May 19, 2024

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.

vs1682 avatar vs1682 commented on May 19, 2024

Yes, I think that will be good idea. Thanks

from ci-env.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.