Add environment variable to build process

This commit is contained in:
Ceferino Patino 2024-02-19 08:51:25 -06:00
commit 1f9a3acc17

View file

@ -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