Giter Site home page Giter Site logo

sdu-env-specific-variables-action's Introduction

Environment specific variables

Action

Action options

Prop description
environment_name* Environment name
mode* options: env / output set as output or set it as global env variable
* = required

to extract the branch/tag name you can use the elseu/sdu-env-specific-variables-action action.

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: elseu/sdu-env-specific-variables-action@v1
        with:
          mode: env
          environment_name: release
        env:
          DEFAULT_DATABASE_URL: "psql://login:test@localhost"
          PRODUCTION_DATABASE_URL: "psql://login:test@localhost"
          RELEASE_DATABASE_URL: "psql://login:test@localhost"
          DEVELOP_DATABASE_URL: "psql://login:test@localhost"

Variables

You can add environment variables that you want to pass to the deploy script. First it will rename the environment variable based on the defined environment name. So for example when you have as environment name MASTER and you have an environment variable defined with MASTER_DATABASE_URL that becomes DATABASE_URL so that you can define variables based on specific environment.

Those variables can be used based on the mode as output variables or as env variable.

Default

If you use DEFAULT as prefix as name when there cannot any match found then DEFAULT_ will be set instead.

sdu-env-specific-variables-action's People

Contributors

lennardwesterveld avatar skarnl avatar

Watchers

Edgar Post-Buijs avatar Job avatar Carlo Bernardini avatar Erik Verheijden avatar James Cloos avatar Tim de Wolf avatar Daphne avatar Ivan Obradovic avatar Michel Vermeer avatar Maarten Kroon avatar Wart avatar  avatar Nikola Zivkovic avatar Igor Trusina avatar Marko Stanic avatar  avatar

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.