fix: build and deployment of scheduler

This commit is contained in:
Karol Sójko 2022-06-21 14:33:45 +02:00
parent 16f6b902d9
commit 5d41ac769b
No known key found for this signature in database
GPG key ID: A50543BF560BDEB0
3 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
name: Scheduler Server Dev name: Scheduler Server Dev
concurrency: concurrency:
group: dev_environment group: scheduler_dev_environment
cancel-in-progress: true cancel-in-progress: true
on: on:
@ -20,6 +20,7 @@ jobs:
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: '16.x' node-version: '16.x'
- run: yarn lint:scheduler
- run: yarn test:scheduler - run: yarn test:scheduler
publish-aws-ecr: publish-aws-ecr:
@ -58,7 +59,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Build image - name: Build image
run: yarn docker build @standardnotes/scheduler-server -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG run: yarn docker build @standardnotes/scheduler-server -t standardnotes/scheduler
- name: Publish to Registry (dev tag) - name: Publish to Registry (dev tag)
uses: manusa/actions-publish-docker@v1.1.2 uses: manusa/actions-publish-docker@v1.1.2
with: with:

View file

@ -32,8 +32,6 @@ jobs:
with: with:
node-version: '16.x' node-version: '16.x'
- run: yarn install --immutable
- name: Bump Prod Version - name: Bump Prod Version
if: ${{ github.ref == 'refs/heads/main' }} if: ${{ github.ref == 'refs/heads/main' }}
run: yarn release:prod run: yarn release:prod

View file

@ -12,6 +12,7 @@
}, },
"scripts": { "scripts": {
"lint": "yarn workspaces foreach -pt --parallel --jobs 10 --verbose run lint", "lint": "yarn workspaces foreach -pt --parallel --jobs 10 --verbose run lint",
"lint:scheduler": "yarn workspace @standardnotes/scheduler-server lint",
"test": "yarn workspaces foreach -pt --parallel --jobs 10 --verbose run test", "test": "yarn workspaces foreach -pt --parallel --jobs 10 --verbose run test",
"test:scheduler": "yarn workspace @standardnotes/scheduler-server test", "test:scheduler": "yarn workspace @standardnotes/scheduler-server test",
"clean": "yarn workspaces foreach -pt --parallel --jobs 10 --verbose run clean", "clean": "yarn workspaces foreach -pt --parallel --jobs 10 --verbose run clean",