-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Streamline make setup and prepare CI w. GH Actions
- Loading branch information
1 parent
5343b19
commit 4f53b20
Showing
4 changed files
with
36 additions
and
17 deletions.
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 |
---|---|---|
|
@@ -2,7 +2,9 @@ name: Docker Image Build & CI Tests | |
|
||
on: | ||
push: | ||
branches: [ main ] | ||
branches: | ||
- main | ||
- v0.2.x-alpha | ||
tags: [ tmp-rerun ] | ||
pull_request: | ||
branches: [ main ] | ||
|
@@ -18,14 +20,17 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build the Docker image | ||
run: docker build . --file Dockerfile --tag api-pgd | ||
run: make build | ||
- name: Create pgadmin_data volume | ||
run: sudo mkdir -p pgadmin_data && sudo chown -R 5050:5050 ./pgadmin_data/ | ||
- name: Run docker-compose | ||
- name: Initialize environment variables | ||
run: ./init/load_fief_env.sh -user-email [email protected] --user-password=123456*abcdef | ||
- name: Initialize Fief database | ||
run: make fief-create-db | ||
- name: Run all service containers | ||
run: docker-compose up -d | ||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: api_pgd | ||
- name: run tests | ||
run: docker exec api-pgd_web_1 /bin/bash -c "./run_after_db.py \"pytest tests/\"" |
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
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
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