forked from compdemocracy/polis
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added polis docker setup and teardown
- Loading branch information
Showing
1 changed file
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,16 @@ jobs: | |
with: | ||
node-version: 18 | ||
- run: npm install && npm install -g @lhci/[email protected] | ||
- run: npm run build | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build and start Docker containers | ||
run: | | ||
docker compose -f docker-compose.yml -f docker-compose.test.yml --env-file test.env --profile postgres up -d --build | ||
- run: lhci autorun | ||
|
||
- name: Stop Docker containers | ||
if: always() | ||
run: docker compose -f docker-compose.yml -f docker-compose.test.yml --env-file test.env --profile postgres down |