Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
kuroweb committed Jan 8, 2024
1 parent ad0aeba commit c0e66a5
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ push-all: push-backend push-tor push-playwright push-bff push-frontend
# backend
#

backend_dockerfile_dir := containers/backend/Dockerfile.prod
backend_project_dir := volumes/backend
backend_tag := $(registry)/price-monitoring-backend:$(tag_suffix)

build-backend:
docker build \
-t $(backend_tag) \
-f $(backend_dockerfile_dir) $(backend_project_dir)
-f containers/backend/Dockerfile.prod volumes/backend

push-backend:
docker push $(backend_tag)
Expand All @@ -40,14 +38,12 @@ push-backend:
# tor
#

tor_dockerfile_dir := containers/tor/Dockerfile.prod
tor_project_dir := volumes/tor
tor_tag := $(registry)/price-monitoring-backend-tor:$(tag_suffix)

build-tor:
docker build \
-t $(tor_tag) \
-f $(tor_dockerfile_dir) $(tor_project_dir)
-f containers/tor/Dockerfile.prod volumes/tor

push-tor:
docker push $(tor_tag)
Expand All @@ -56,13 +52,12 @@ push-tor:
# playwright
#

playwright_dockerfile_dir := containers/playwright/Dockerfile
playwright_tag := $(registry)/price-monitoring-backend-playwright:$(tag_suffix)

build-playwright:
docker build \
-t $(playwright_tag) \
-f $(playwright_dockerfile_dir) .
-f containers/playwright/Dockerfile .

push-playwright:
docker push $(playwright_tag)
Expand All @@ -71,14 +66,12 @@ push-playwright:
# bff
#

bff_dockerfile_dir := containers/bff/Dockerfile.prod
bff_project_dir := volumes/bff
bff_tag := $(registry)/price-monitoring-bff:$(tag_suffix)

build-bff:
docker build \
-t $(bff_tag) \
-f $(bff_dockerfile_dir) $(bff_project_dir)
-f containers/bff/Dockerfile.prod volumes/bff

push-bff:
docker push $(bff_tag)
Expand All @@ -87,14 +80,12 @@ push-bff:
# frontend
#

frontend_dockerfile_dir := containers/frontend/Dockerfile.prod
frontend_project_dir := volumes/frontend
frontend_tag := $(registry)/price-monitoring-frontend:$(tag_suffix)

build-frontend:
docker build \
-t $(frontend_tag) \
-f $(frontend_dockerfile_dir) $(frontend_project_dir)
-f containers/frontend/Dockerfile.prod volumes/frontend

push-frontend:
docker push $(frontend_tag)

0 comments on commit c0e66a5

Please sign in to comment.