Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

🐛 Fix deployment #26

Merged
merged 1 commit into from
Sep 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions scripts/build-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@

set -e

basename="tiangolo/docker-with-compose"
latest_tag="${basename}:latest"
dated_tag="${basename}:$(date -I)"

bash scripts/build.sh

docker tag "$latest_tag" "$dated_tag"

bash scripts/docker-login.sh

docker push "$latest_tag"
Expand Down
3 changes: 0 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@ set -e

basename="tiangolo/docker-with-compose"
latest_tag="${basename}:latest"
dated_tag="${basename}:$(date -I)"

docker build -t "$latest_tag" .

docker tag "$latest_tag" "$dated_tag"