mirror of
https://github.com/mentos1386/zdravko.git
synced 2024-11-25 00:58:07 +00:00
21 lines
572 B
Text
21 lines
572 B
Text
|
# Deploy the application to fly.io
|
||
|
deploy-fly:
|
||
|
fly deploy --ha=false -c deploy/fly.toml -i {{DOCKER_IMAGE}}
|
||
|
|
||
|
# Read local jwt key and set it as fly secret
|
||
|
deploy-fly-set-jwt-key-secrets:
|
||
|
#!/bin/bash
|
||
|
# https://github.com/superfly/flyctl/issues/589
|
||
|
cat <<EOF | fly secrets import -c deploy/fly.toml
|
||
|
JWT_PRIVATE_KEY="""{{JWT_PRIVATE_KEY}}"""
|
||
|
JWT_PUBLIC_KEY="""{{JWT_PUBLIC_KEY}}"""
|
||
|
EOF
|
||
|
|
||
|
# Deploy locally with docker compose
|
||
|
deploy-docker:
|
||
|
cd deploy && docker compose up
|
||
|
|
||
|
# Build the application
|
||
|
build:
|
||
|
docker build -f build/Dockerfile -t {{DOCKER_IMAGE}} .
|