Skip to content

Commit

Permalink
Configure makefile for releasing remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
Azeirah committed Nov 23, 2024
1 parent 28518a8 commit 14ccf3a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions deployment/Makefile
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
commit:=$(shell git rev-parse main)
base_container:=laauurraaa/remarks-bin:${commit}
server_container:=laauurraaa/remarks-server:${commit}

release: build-base build-server upload-bin upload-server
echo "Releasing app and container at commit ${commit}"

build-base:
docker build -t ${base_container} -f ./remarks-base/remarks.Dockerfile ..

build-server:
docker build -t ${server_container} -f ./remarks-server/remarks-server.Dockerfile ./remarks-server

upload-bin:
docker push ${base_container}

upload-server:
docker push ${server_container}
2 changes: 1 addition & 1 deletion deployment/remarks-server/remarks-server.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM laauurraaa/remarks-bin:0.3.16
FROM laauurraaa/remarks-bin:latest

COPY server.py /app/server.py
RUN ["/root/.local/bin/poetry", "run", "pip", "install", "flask"]
Expand Down

0 comments on commit 14ccf3a

Please sign in to comment.