Add environment variable to build process
This commit is contained in:
parent
7ee60242d3
commit
1f9a3acc17
1 changed files with 4 additions and 3 deletions
7
.github/workflows/build-deploy.yml
vendored
7
.github/workflows/build-deploy.yml
vendored
|
|
@ -29,11 +29,12 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
- name: Write .env to build
|
||||
env:
|
||||
DOTENV: '${{ secrets.DOTENV }}'
|
||||
run: echo "$DOTENV" >> .env
|
||||
- name: Build & push client image
|
||||
uses: mr-smithers-excellent/docker-build-push@v6
|
||||
env:
|
||||
REACT_APP_DOMAIN_ROOT: ${ secrets.REACT_APP_DOMAIN_ROOT }
|
||||
REACT_APP_API_ROOT: ${ secrets.REACT_APP_API_ROOT }
|
||||
with:
|
||||
image: c4thebomb/know-it-all-client
|
||||
registry: docker.io
|
||||
|
|
|
|||
Reference in a new issue