Compare commits

...

3 Commits

Author SHA1 Message Date
standardci
0eaf1a593d chore(release): publish
- @standardnotes/scheduler-server@1.1.0-alpha.3
2022-06-20 10:50:54 +00:00
Karol Sójko
1c4c609865 fix: add default value for db migrations path 2022-06-20 12:50:10 +02:00
Karol Sójko
17a0c9fd24 fix: install and build app locally before adding to docker image 2022-06-20 12:39:34 +02:00
4 changed files with 16 additions and 2 deletions

View File

@@ -39,6 +39,10 @@ jobs:
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Install dependencies locally
run: yarn install
- name: Build application locally
run: yarn build:scheduler
- name: Build, tag, and push image to Amazon ECR
id: build-image
env:
@@ -58,6 +62,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install dependencies locally
run: yarn install
- name: Build application locally
run: yarn build:scheduler
- name: Publish to Registry
env:
DOCKER_BUILDKIT: 1

View File

@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [1.1.0-alpha.3](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.1.0-alpha.2...@standardnotes/scheduler-server@1.1.0-alpha.3) (2022-06-20)
### Bug Fixes
* add default value for db migrations path ([1c4c609](https://github.com/standardnotes/server/commit/1c4c609865f834f09106e934c85350a9ea276b6d))
# [1.1.0-alpha.2](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.1.0-alpha.1...@standardnotes/scheduler-server@1.1.0-alpha.2) (2022-06-20)
### Bug Fixes

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/scheduler-server",
"version": "1.1.0-alpha.2",
"version": "1.1.0-alpha.3",
"engines": {
"node": ">=16.0.0 <17.0.0"
},

View File

@@ -35,7 +35,7 @@ export const AppDataSource = new DataSource({
removeNodeErrorCount: 10,
},
entities: [Job, Predicate],
migrations: [env.get('DB_MIGRATIONS_PATH')],
migrations: [env.get('DB_MIGRATIONS_PATH', true) ?? 'dist/migrations/*.js'],
migrationsRun: true,
logging: <LoggerOptions>env.get('DB_DEBUG_LEVEL'),
})