Skip to content

Commit

Permalink
fix: create .env file on docker pull
Browse files Browse the repository at this point in the history
  • Loading branch information
weaponsforge committed Nov 1, 2024
1 parent 02634cb commit 1de0c07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pull-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@ jobs:
git checkout $LATEST_TAG
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
- name: Create env variables
run: |
cp client/.env.example client/.env
cp server/.env.example server/.env
- name: Pull Development Image
run: docker compose -f docker-compose.dev.yml pull
2 changes: 2 additions & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ services:
container_name: todo-client-prod
image: weaponsforge/todo-client:latest
restart: always
env_file:
- ./client/.env
build:
context: ./client
dockerfile: Dockerfile
Expand Down

0 comments on commit 1de0c07

Please sign in to comment.