Browse Source

fix: build and deployment of scheduler

Karol Sójko 3 years ago
parent
commit
5d41ac769b
3 changed files with 4 additions and 4 deletions
  1. 3 2
      .github/workflows/scheduler.release.dev.yml
  2. 0 2
      .github/workflows/version-bump.yml
  3. 1 0
      package.json

+ 3 - 2
.github/workflows/scheduler.release.dev.yml

@@ -1,7 +1,7 @@
 name: Scheduler Server Dev
 
 concurrency:
-  group: dev_environment
+  group: scheduler_dev_environment
   cancel-in-progress: true
 
 on:
@@ -20,6 +20,7 @@ jobs:
     - uses: actions/setup-node@v1
       with:
         node-version: '16.x'
+    - run: yarn lint:scheduler
     - run: yarn test:scheduler
 
   publish-aws-ecr:
@@ -58,7 +59,7 @@ jobs:
     steps:
     - uses: actions/checkout@v3
     - 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)
       uses: manusa/actions-publish-docker@v1.1.2
       with:

+ 0 - 2
.github/workflows/version-bump.yml

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

+ 1 - 0
package.json

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