Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to pass .env file in bitbucket pipeline

Hardik
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 21, 2021

Hello,

 

I want to pass .env file before building docker image?

as good practice we cant add .env in repo.

 

so how to do this. and then push image to ECR.

1 answer

0 votes
Justin Thomas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 4, 2021

@Hardik Have you explored creating the .env file in your `step` from environment variables that you can define at a repository level?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events