Skip to content

Commit

Permalink
tested a different way of linking the openapi config into the data co…
Browse files Browse the repository at this point in the history
…ntainer
  • Loading branch information
CommanderStorm committed Aug 8, 2024
1 parent 2d8c0dc commit c98a533
Show file tree
Hide file tree
Showing 5 changed files with 2,445 additions and 2,446 deletions.
1 change: 0 additions & 1 deletion .github/workflows/_docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
steps:
- uses: actions/checkout@v4
- run: cp openapi.yaml data/output
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ repos:
hooks:
- id: openapi-format
name: openapi-format
entry: openapi-format ./openapi.yaml --output
entry: openapi-format ./data/output/openapi.yaml --output
language: system
files: "openapi.yaml"
files: "data/output/openapi.yaml"
# only server
- repo: local
hooks:
Expand Down
3 changes: 1 addition & 2 deletions data/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ COPY processors/ processors/
COPY *.py ./
COPY translations.yaml translations.yaml

RUN mkdir "output"
COPY output/openapi.yaml output/openapi.yaml
COPY output output

RUN python3 compile.py \
&& test -f "./output/openapi.yaml" \
Expand Down
Loading

0 comments on commit c98a533

Please sign in to comment.