Compare commits

..

1 commit

Author SHA1 Message Date
James Long 5ad07cad9c Store user files as blobs instead of unzipping them 2022-10-05 21:33:01 -04:00
4 changed files with 37 additions and 45 deletions

View file

@ -1,31 +1,10 @@
name: Build Docker Image
# Docker Images are built for every push to master or when a new tag is created
# Docker Images are only built when a new tag is created
on:
push:
branches:
- master
tags:
- 'v*.*.*'
paths-ignore:
- README.md
- LICENSE.txt
env:
IMAGES: |
jlongster/actual-server
ghcr.io/actualbudget/actual-server
# Creates the following tags:
# - actual-server:latest (see docker/metadata-action flavor inputs, below)
# - actual-server:edge (for master)
# - actual-server:1.3
# - actual-server:1.3.7
# - actual-server:sha-90dd603
TAGS: |
type=edge,value=edge
type=semver,pattern={{version}}
type=sha
jobs:
build:
@ -45,22 +24,35 @@ jobs:
uses: docker/metadata-action@v4
with:
# Push to both Docker Hub and Github Container Registry
images: ${{ env.IMAGES }}
# Automatically update :latest for our semver tags
flavor: |
latest=auto
tags: ${{ env.TAGS }}
images: |
jlongster/actual-server
ghcr.io/actualbudget/actual-server
# Creates the following tags:
# - actual-server:latest
# - actual-server:1.3
# - actual-server:1.3.7
# - actual-server:sha-90dd603
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha
- name: Docker meta for Alpine image
id: alpine-meta
uses: docker/metadata-action@v4
with:
images: ${{ env.IMAGES }}
# Automatically update :latest for our semver tags and suffix all tags
flavor: |
latest=auto
suffix=-alpine,onlatest=true
tags: $${{ env.TAGS }}
images: |
jlongster/actual-server
ghcr.io/actualbudget/actual-server
tags: |
type=ref,event=branch
type=ref,event=pr
type=raw,value=latest,suffix=-alpine
type=semver,pattern={{version}},suffix=-alpine
type=semver,pattern={{major}}.{{minor}},suffix=-alpine
type=sha,suffix=-alpine
- name: Login to Docker Hub
uses: docker/login-action@v1

View file

@ -1,6 +1,6 @@
{
"name": "actual-sync",
"version": "22.12.09",
"version": "1.0.1",
"license": "MIT",
"description": "actual syncing server",
"main": "index.js",
@ -12,8 +12,8 @@
"verify": "yarn -s lint && yarn types"
},
"dependencies": {
"@actual-app/api": "4.1.5",
"@actual-app/web": "22.12.3",
"@actual-app/api": "4.1.0",
"@actual-app/web": "4.1.0",
"bcrypt": "^5.0.1",
"better-sqlite3": "^7.5.0",
"body-parser": "^1.18.3",

View file

@ -6,7 +6,7 @@ let { getPathForGroupFile } = require('./util/paths');
let actual = require('@actual-app/api');
let merkle = actual.internal.merkle;
let SyncPb = actual.internal.SyncProtoBuf;
let Timestamp = actual.internal.timestamp.Timestamp;
let Timestamp = actual.internal.timestamp.default;
function getGroupDb(groupId) {
let path = getPathForGroupFile(groupId);

View file

@ -2,19 +2,19 @@
# yarn lockfile v1
"@actual-app/api@4.1.5":
version "4.1.5"
resolved "https://registry.yarnpkg.com/@actual-app/api/-/api-4.1.5.tgz#727f7e2233dd29204d2b7e244a671b3b88d0683a"
integrity sha512-rI4xqaHt9UNxovSPo8tukjluuESlxscMXUkImyYV4gYzAETsSFET3k0708Zw0EZsXCVanqAtfv+v84SNEBqn0A==
"@actual-app/api@4.1.0":
version "4.1.0"
resolved "https://registry.yarnpkg.com/@actual-app/api/-/api-4.1.0.tgz#43580a56a370a12dae5668b8d56c540c1849c4c9"
integrity sha512-8tLuA6zDnN0NjD9wui5fB/cSe0hr/iYWOHGyW/ikJoGPrCu8N8zIITz2FhfplD2QDszgAsTRt48H2YtPmR9plg==
dependencies:
better-sqlite3 "^7.5.0"
node-fetch "^1.6.3"
uuid "3.3.2"
"@actual-app/web@22.12.3":
version "22.12.3"
resolved "https://registry.yarnpkg.com/@actual-app/web/-/web-22.12.3.tgz#e171fcd2bc3cdeea5cd87d879cc28986e3685a0f"
integrity sha512-Ii6xbISEfDlLP8X+ZUYwyINuiJF1r8PHGy83OZl9lx6IbBj+d81Z8l2Qv5fhizmqHin8JytfZt0dR7rmpduVRg==
"@actual-app/web@4.1.0":
version "4.1.0"
resolved "https://registry.yarnpkg.com/@actual-app/web/-/web-4.1.0.tgz#9a5c5d5fd3c6e5a1a34dcaf087fb1920a27f13eb"
integrity sha512-QgxrHBUoDXsUCRzQTD4PmDkTt27UUcPfFJMqXPHtk2lP0ey7iVsZIW7AUeYkEs1+ghmqVVqk+jw3OAD4XQzbRA==
"@eslint/eslintrc@^1.2.3":
version "1.2.3"