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

$CONTAINER_NAME Env Variable does not exist in CodeBuild #29

Open
francobontorin opened this issue Jan 30, 2020 · 1 comment
Open

$CONTAINER_NAME Env Variable does not exist in CodeBuild #29

francobontorin opened this issue Jan 30, 2020 · 1 comment

Comments

@francobontorin
Copy link

Hi there,
In your buildspec example you use $CONTAINER_NAME but I haven't found anywhere in the code where I could pass the container_name to my CodeBuild environment variable.

Unless I hardcode the container name directly on my build_spec the example is not working as is.

thank you

@jdillon
Copy link

jdillon commented May 16, 2020

I just ran into this as well, but looks like you can easily solve this by defining CONTAINER_NAME:

  environment_variables = [
    {
      name: "CONTAINER_NAME"
      value: "replace-with-container-name"
    }
  ]

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

No branches or pull requests

2 participants