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

Expose env vars as parameters to the stack #682

Merged
merged 2 commits into from
Aug 7, 2023
Merged

Conversation

JohnPreston
Copy link
Member

tested with

services:
  proxy:
    image: nginx
    environment:
      ENV_var01: something
      ENV_VAR_01: else
      env_VAR02: hello
      ENVVAR02: world
      PXY_ANumber: 10
    x-environment:
      SetAsParameter:
        - ENV_var01
        - ENV_VAR_01
        - env_VAR02
        - ENVVAR02
        - DOES_NOT_EXIST
        - PXY_ANumber
  backend:
    image: nginx
    environment:
      ENV_var01: 1
      ENV_VAR_01: else
      env_VAR02: hello
      ENVVAR02: world
    x-environment:
      SetAsParameter:
        ENV_var01:
          Type: Number
        ENV_VAR_01:
          Type: String
        env_VAR02:
          Type: CommaDelimitedList
          Description: Something totally useful
        ENVVAR02:
          Type: String
          AllowedPattern: '^[\w]+$'
        DOES_NOT_EXIST:
          Type: WhateverTheWeather

@JohnPreston JohnPreston self-assigned this Aug 3, 2023
@JohnPreston JohnPreston linked an issue Aug 3, 2023 that may be closed by this pull request
@sonarcloud
Copy link

sonarcloud bot commented Aug 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@JohnPreston JohnPreston merged commit 7f288f4 into main Aug 7, 2023
4 checks passed
@JohnPreston JohnPreston deleted the feature/x-environment branch August 7, 2023 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR] environment variables as stack parameters
1 participant