-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OpenAPI Specification to Release Assets
- Loading branch information
Showing
2 changed files
with
76 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Fetch OpenAPI Specifications | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
oas_fetch: | ||
name: etch OpenAPI Specifications | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
# load docker images from build jobs | ||
- name: Load images from artifacts | ||
uses: actions/download-artifact@v3 | ||
|
||
- name: Load docker images | ||
run: |- | ||
docker load -i nginx/nginx-alpine_img | ||
docker load -i django/django-alpine_img | ||
docker images | ||
- name: Start Dojo | ||
run: docker-compose --profile postgres-redis --env-file ./docker/environments/postgres-redis.env up --no-deps -d postgres nginx uwsgi | ||
env: | ||
DJANGO_VERSION: alpine | ||
NGINX_VERSION: alpine | ||
|
||
- name: Download OpenAPI Specifications | ||
run: |- | ||
wget 'http://localhost:8080/api/v2/oa3/schema/?format=yaml' -O oas.yaml | ||
wget 'http://localhost:8080/api/v2/oa3/schema/?format=json' -O oas.json | ||
- name: Logs | ||
if: always() | ||
run: docker-compose --profile postgres-redis --env-file ./docker/environments/postgres-redis.env logs --tail="2500" | ||
|
||
- name: Shutdown | ||
if: always() | ||
run: docker-compose --profile postgres-redis --env-file ./docker/environments/postgres-redis.env down |
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