-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
38 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,26 @@ | ||
build-trytond: | ||
nix-build release.nix | ||
# Deployment | ||
|
||
build-and-load-image: | ||
docker load < $(nix-build docker.nix) | ||
|
||
tag-and-push-image APP: | ||
docker tag gnuhealth-nix registry.fly.io/{{APP}} | ||
tag-and-push-image: | ||
docker tag gnuhealth-nix registry.fly.io/$(cat secrets.json | jq -r .app_name) | ||
flyctl auth docker | ||
docker push registry.fly.io/{{APP}} | ||
docker push registry.fly.io/$(cat secrets.json | jq -r .app_name) | ||
|
||
deploy: | ||
flyctl deploy --app $(cat secrets.json | jq -r .app_name) | ||
|
||
# Debugging | ||
|
||
trytond-build: | ||
nix-build release.nix | ||
|
||
start-image: | ||
docker run --network="host" gnuhealth-nix | ||
|
||
inspect-image: | ||
docker exec -t -i $(docker ps -aq -f ancestor=gnuhealth-nix) /bin/bash | ||
|
||
deploy APP: | ||
flyctl deploy --app {{APP}} | ||
stop-image: | ||
docker stop $(docker ps -aq -f ancestor=gnuhealth-nix) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,6 @@ mkShell { | |
bower2nix | ||
just | ||
flyctl | ||
jq | ||
]; | ||
} |