Skip to content

Commit

Permalink
fix: use new token in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Dec 15, 2023
1 parent e177f61 commit 574f709
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 25 deletions.
13 changes: 13 additions & 0 deletions .fly
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Now that you've set up Postgres, here's what you need to understand: https://fly.io/docs/postgres/getting-started/what-you-should-know/
Checking for existing attachments
Registering attachment
Creating database
Creating user

Postgres cluster moksha-mint-db is now attached to moksha-mint
The following secret was added to moksha-mint:
DATABASE_URL=postgres://moksha_mint:[email protected]:5432/moksha_mint?sslmode=disable
Postgres cluster moksha-mint-db is now attached to moksha-mint
Wrote config file fly.toml
Validating /Users/steffen/projects/moksha/fly.toml
Platform: machines
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.GHCR_RW }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
Expand Down
14 changes: 13 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,22 @@ services:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: moksha-mint
app:
image: "registry.fly.io/moksha-mint"
image: "registry.fly.io/moksha-mint@sha256:de70a65f43e1417b47c988b20de0f65aa0e7247ed0934651b1e5e86cacdbd494"
ports:
- 3338:3338
volumes:
- /Users/steffen/projects/moksha/data/mutinynet/admin.macaroon:/app/admin.macaroon
- /Users/steffen/projects/moksha/data/mutinynet/tls.cert:/app/tls.cert
environment:
- DATABASE_URL=postgres://postgres:postgres@database/moksha-mint
- MINT_APP_ENV=prod
- MINT_LIGHTNING_BACKEND=Lnd
- LND_MACAROON_PATH=/app/admin.macaroon
- LND_TLS_CERT_PATH=/app/tls.cert
- LND_GRPC_HOST=https://mutinynet.moksha.cash:10009
- MINT_PRIVATE_KEY=ajszwuelakszetdh
- MINT_DB_URL=postgres://postgres:postgres@database/moksha-mint
- LIGHTNING_FEE_PERCENT=0.01
- LIGHTNING_RESERVE_FEE_MIN=10
profiles:
- app
49 changes: 26 additions & 23 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
# fly.toml app configuration file generated for moksha-mint on 2023-12-13T20:00:51+01:00
# fly.toml app configuration file generated for moksha-mint on 2023-12-14T15:52:30+01:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "moksha-mint"
primary_region = "ams"

[build]
[env]
LIGHTNING_FEE_PERCENT = "0"
LIGHTNING_RESERVE_FEE_MIN = "0"
LND_GRPC_HOST = "https://mutinynet.moksha.cash:10009"
LND_MACAROON_PATH = "/admin.macaroon"
LND_TLS_CERT_PATH = "/tls.cert"
MINT_DB_URL = "postgres://moksha_mint:[email protected]:5432/moksha_mint?sslmode=disable"
MINT_HOST_PORT = "[::]:3338"
MINT_INFO_DESCRIPTION = "fly.io mint"
MINT_INFO_DESCRIPTION_LONG = "mint description long"
MINT_INFO_MOTD = "some message of the day"
MINT_INFO_NAME = "moksha-mint"
MINT_INFO_VERSION = "true"
MINT_LIGHTNING_BACKEND = "Lnd"
MINT_PRIVATE_KEY = "changeme"
SQLX_OFFLINE = "false"

[http_service]
internal_port = 3338
Expand All @@ -16,31 +31,19 @@ auto_start_machines = true
min_machines_running = 0
processes = ["app"]

[[vm]]
cpu_kind = "shared"
cpus = 1
memory_mb = 1024

[env]
MINT_APP_ENV = "prod"
SQLX_OFFLINE = "false"
MINT_HOST_PORT = "[::]:3338"
MINT_INFO_NAME = "moksha-mint"
MINT_INFO_VERSION = "true"
MINT_INFO_DESCRIPTION = "fly.io mint"
MINT_INFO_DESCRIPTION_LONG = "mint description long"
MINT_INFO_MOTD = "some message of the day"
LIGHTNING_FEE_PERCENT = "0"
LIGHTNING_RESERVE_FEE_MIN = "0"
MINT_LIGHTNING_BACKEND = "Lnd"
LND_MACAROON_PATH = "/admin.macaroon"
LND_TLS_CERT_PATH = "/tls.cert"
LND_GRPC_HOST = "https://mutinynet.moksha.cash:10009"

[[files]]
guest_path = "/admin.macaroon"
local_path = ""
secret_name = "LND_MACAROON"
raw_value = ""

[[files]]
guest_path = "/tls.cert"
local_path = ""
secret_name = "LND_TLS_CERT"
raw_value = ""

[[vm]]
cpu_kind = "shared"
cpus = 1
memory_mb = 1024
3 changes: 3 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[toolchain]
channel = "1.74.1"
components = ["clippy", "rustfmt"]

0 comments on commit 574f709

Please sign in to comment.