File tree Expand file tree Collapse file tree 17 files changed +28
-31
lines changed Expand file tree Collapse file tree 17 files changed +28
-31
lines changed Original file line number Diff line number Diff line change 71
71
"$IMAGE_TAG" \
72
72
"$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" \
73
73
"$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" > ./version.json
74
- docker build --file infra/ Dockerfile -t $GITHUB_REPOSITORY:$IMAGE_TAG .
74
+ docker build --file Dockerfile -t $GITHUB_REPOSITORY:$IMAGE_TAG .
75
75
docker image tag $GITHUB_REPOSITORY:$IMAGE_TAG $GITHUB_REPOSITORY:latest
76
76
docker push $GITHUB_REPOSITORY:$IMAGE_TAG
77
77
docker push $GITHUB_REPOSITORY:latest
Original file line number Diff line number Diff line change 15
15
cache : " poetry"
16
16
- name : Install dependencies
17
17
run : poetry install
18
- - run : infra /lint.sh
18
+ - run : bin /lint.sh
Original file line number Diff line number Diff line change 16
16
- name : Install dependencies
17
17
run : poetry install
18
18
- name : Run tests
19
- run : infra /test.sh
19
+ run : bin /test.sh
Original file line number Diff line number Diff line change @@ -128,8 +128,5 @@ dmypy.json
128
128
# Pyre type checker
129
129
.pyre /
130
130
131
- # iSort - Pre-Commit
132
- .isort.cfg
133
-
134
131
# Don't check in your own Env
135
- * local_dev.env
132
+ / config / local_dev.env
Original file line number Diff line number Diff line change @@ -12,53 +12,53 @@ repos:
12
12
' --indent' , '4',
13
13
' --no-sort-keys' ,
14
14
]
15
- exclude : " infra /k8s/secret.json"
15
+ exclude : " bin /k8s/secret.json"
16
16
- id : trailing-whitespace
17
17
- repo : local
18
18
hooks :
19
19
- id : pylint
20
20
name : pylint
21
- entry : infra /lint.sh pylint
21
+ entry : bin /lint.sh pylint
22
22
language : script
23
23
types : [python]
24
24
- repo : local
25
25
hooks :
26
26
- id : mypy
27
27
name : mypy
28
- entry : infra /lint.sh mypy
28
+ entry : bin /lint.sh mypy
29
29
language : script
30
30
types : [python]
31
31
- repo : local
32
32
hooks :
33
33
- id : bandit
34
34
name : bandit
35
- entry : infra /lint.sh bandit
35
+ entry : bin /lint.sh bandit
36
36
language : script
37
37
types : [python]
38
38
- repo : local
39
39
hooks :
40
40
- id : detect-secrets
41
41
name : detect-secrets
42
- entry : infra /lint.sh detect-secrets
42
+ entry : bin /lint.sh detect-secrets
43
43
language : script
44
44
- repo : local
45
45
hooks :
46
46
- id : isort
47
47
name : isort
48
- entry : infra /lint.sh isort
48
+ entry : bin /lint.sh isort
49
49
language : script
50
50
types : [python]
51
51
- repo : local
52
52
hooks :
53
53
- id : black
54
54
name : black
55
- entry : infra /lint.sh black
55
+ entry : bin /lint.sh black
56
56
language : script
57
57
types : [python]
58
58
- repo : local
59
59
hooks :
60
60
- id : yamllint
61
61
name : yamllint
62
- entry : infra /lint.sh yamllint
62
+ entry : bin /lint.sh yamllint
63
63
language : script
64
64
types : [yaml]
Original file line number Diff line number Diff line change 109
109
"line_number": 152
110
110
}
111
111
],
112
- "infra/ config/local_dev.env": [
112
+ "config/local_dev.env": [
113
113
{
114
114
"type": "Secret Keyword",
115
- "filename": "infra/ config/local_dev.env",
115
+ "filename": "config/local_dev.env",
116
116
"hashed_secret": "4b9a4ce92b6a01a4cd6ee1672d31c043f2ae79ab",
117
117
"is_verified": false,
118
118
"line_number": 5
119
119
},
120
120
{
121
121
"type": "Secret Keyword",
122
- "filename": "infra/ config/local_dev.env",
122
+ "filename": "config/local_dev.env",
123
123
"hashed_secret": "77ea6398f252999314d609a708842a49fc43e055",
124
124
"is_verified": false,
125
125
"line_number": 8
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ extends: default
5
5
ignore: |
6
6
src/
7
7
tests/
8
- infra /
8
+ bin /
9
9
.github/
10
10
docker-compose.yaml
11
11
.pre-commit-config.yaml
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ COPY --from=builder-base $POETRY_HOME $POETRY_HOME
65
65
COPY --from=builder-base $PYSETUP_PATH $PYSETUP_PATH
66
66
67
67
# Copying in our entrypoint
68
- COPY --chown=app:app ./infra /docker-entrypoint.sh /docker-entrypoint.sh
68
+ COPY --chown=app:app ./bin /docker-entrypoint.sh /docker-entrypoint.sh
69
69
RUN chmod +x /docker-entrypoint.sh
70
70
71
71
# venv already has runtime deps installed we get a quicker install
@@ -88,9 +88,9 @@ ENV FASTAPI_ENV=production \
88
88
PROMETHEUS_MULTIPROC=1
89
89
90
90
COPY --from=builder-base $VENV_PATH $VENV_PATH
91
- COPY ./infra /gunicorn_conf.py /gunicorn_conf.py
91
+ COPY ./bin /gunicorn_conf.py /gunicorn_conf.py
92
92
93
- COPY ./infra /docker-entrypoint.sh /docker-entrypoint.sh
93
+ COPY ./bin /docker-entrypoint.sh /docker-entrypoint.sh
94
94
RUN chmod +x /docker-entrypoint.sh
95
95
96
96
COPY . /app
Original file line number Diff line number Diff line change @@ -31,12 +31,12 @@ build:
31
31
32
32
.PHONY : format
33
33
format :
34
- infra /lint.sh black --fix
35
- infra /lint.sh isort --fix
34
+ bin /lint.sh black --fix
35
+ bin /lint.sh isort --fix
36
36
37
37
.PHONY : lint
38
38
lint :
39
- docker-compose run --rm web infra /lint.sh
39
+ docker-compose run --rm web bin /lint.sh
40
40
41
41
.PHONY : shell
42
42
shell :
48
48
49
49
.PHONY : test
50
50
test :
51
- docker-compose run --rm web infra /test.sh
51
+ docker-compose run --rm web bin /test.sh
52
52
53
53
.PHONY : test-shell
54
54
test-shell :
File renamed without changes.
You can’t perform that action at this time.
0 commit comments