Skip to content

Commit 843c7a0

Browse files
committed
use one docker file
1 parent fce6300 commit 843c7a0

15 files changed

Lines changed: 11 additions & 352 deletions

.github/workflows/prod.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
cache-from: type=gha
6262
cache-to: type=gha,mode=max
6363
context: .
64-
file: Dockerfile
64+
file: docker/prod/Dockerfile
6565
labels: ${{ steps.meta.outputs.labels }}
6666
push: true
6767
tags: ${{ steps.meta.outputs.tags }}
@@ -136,7 +136,7 @@ jobs:
136136
--set environment.ADMIN_PSQL_PASSWORD="${{ secrets.PRODUCTION_ADMIN_PSQL_PASSWORD }}" \
137137
--set environment.ADMIN_PSQL_HOST="${{ secrets.PRODUCTION_ADMIN_PSQL_HOST }}" \
138138
--set environment.ADMIN_PSQL_PORT="${{ secrets.PRODUCTION_ADMIN_PSQL_PORT }}" \
139-
--set environment.MAIL_PASSWORD="${{ secrets.PRODUCTION_MAIL_PASSWORD }}" \
139+
--set environment.MAIL_PASSWORD="${{ secrets.MAIL_PASSWORD }}" \
140140
--timeout=300s
141141
142142
- name: Monitor Rollout

.github/workflows/staging.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
cache-from: type=gha
5050
cache-to: type=gha,mode=max
5151
context: .
52-
file: Dockerfile.api
52+
file: Dockerfile
5353
labels: ${{ steps.meta.outputs.labels }}
5454
push: true
5555
tags: ${{ steps.meta.outputs.tags }}
@@ -73,7 +73,7 @@ jobs:
7373
name: Deploy (Staging)
7474

7575
needs:
76-
- Build
76+
- build
7777

7878
runs-on: ubuntu-latest
7979
env:

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ RUN poetry install
1919
EXPOSE 8000
2020

2121
#Exposing port for celery flower
22-
EXPOSE 5555
22+
# EXPOSE 5555
23+
ENTRYPOINT ["sh", "/app/scripts/start.sh"]

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010
restart: always
1111
build:
1212
context: .
13-
dockerfile: Dockerfile.api
13+
dockerfile: Dockerfile
1414
container_name: database-api
1515
environment:
1616
PYTHONDONTWRITEBYTECODE: 1

Dockerfile.api renamed to docker/prod/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ RUN poetry install
1818

1919
EXPOSE 8000
2020

21-
ENTRYPOINT ["sh", "/app/scripts/start.sh"]
22-
21+
#Exposing port for celery flower
22+
# EXPOSE 5555
23+
ENTRYPOINT ["sh", "/app/scripts/start-prod.sh"]

helm/chart/.helmignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

helm/chart/Chart.yaml

Lines changed: 0 additions & 23 deletions
This file was deleted.

helm/chart/templates/_helpers.tpl

Lines changed: 0 additions & 47 deletions
This file was deleted.

helm/chart/templates/celery-deployment.yaml

Lines changed: 0 additions & 54 deletions
This file was deleted.

helm/chart/templates/deployment.yaml

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)