Skip to content

Commit

Permalink
Update to 0.12.12 (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominion5254 authored Oct 31, 2024
1 parent da3e11b commit 4b6b20e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM lnbits/lnbits:v0.12.11 AS builder
FROM lnbits/lnbits:v0.12.12 AS builder

# arm64 or amd64
ARG PLATFORM

RUN apt-get update && apt-get install -y bash curl sqlite3 tini --no-install-recommends
RUN curl -sS https://webi.sh/yq | sh

FROM lnbits/lnbits:v0.12.11 AS final
FROM lnbits/lnbits:v0.12.12 AS final

COPY --from=builder /usr/bin/tini /usr/bin/tini
COPY --from=builder /usr/bin/sqlite3 /usr/bin/sqlite3
Expand Down
6 changes: 2 additions & 4 deletions manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
id: lnbits
title: "LNBits"
version: 0.12.11
version: 0.12.12
release-notes: |
* Update LNbits to 0.12.11 - Full release notes available [here](https://github.com/lnbits/lnbits/releases/tag/v0.12.11).
* Optimizations and refactoring
* Update README and Instructions
* Update LNbits to 0.12.12 - Full release notes available [here](https://github.com/lnbits/lnbits/releases/tag/v0.12.12).
license: MIT
wrapper-repo: "https://github.com/Start9Labs/lnbits-startos"
upstream-repo: "https://github.com/lnbits/lnbits"
Expand Down
37 changes: 20 additions & 17 deletions scripts/services/migrations.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
import { compat, types as T } from "../deps.ts";

export const migration: T.ExpectedExports.migration = compat.migrations
.fromMapping({
"0.9.7.2": {
export const migration: T.ExpectedExports.migration =
compat.migrations.fromMapping(
{
"0.9.7.2": {
up: compat.migrations.updateConfig(
(config: any) => {
return { implementation: config?.wallet.type || 'LndRestWallet' }
},
true,
{ version: "0.9.7.2", type: "up" },
(config: any) => {
return { implementation: config?.wallet.type || "LndRestWallet" };
},
true,
{ version: "0.9.7.2", type: "up" }
),
down: compat.migrations.updateConfig(
(config: any) => {
return { wallet: { type: config.implementation || 'LndRestWallet' } };
},
true,
{ version: "0.9.7.2", type: "down" },
(config: any) => {
return {
wallet: { type: config.implementation || "LndRestWallet" },
};
},
true,
{ version: "0.9.7.2", type: "down" }
),
},
},
"0.12.11",
);
},
},
"0.12.12"
);

0 comments on commit 4b6b20e

Please sign in to comment.