Compare commits

...

5 Commits

Author SHA1 Message Date
standardci
dd3ea0bfb5 chore(release): publish
- @standardnotes/scheduler-server@1.1.0-alpha.2
2022-06-20 10:34:31 +00:00
Karol Sójko
a982c78541 fix: docker building for scheduler 2022-06-20 12:33:50 +02:00
Karol Sójko
49093923ca fix: testing script for scheduler 2022-06-20 11:33:18 +02:00
standardci
ee47f8246d chore(release): publish
- @standardnotes/scheduler-server@1.1.0-alpha.1
2022-06-20 09:13:55 +00:00
Karol Sójko
586cdedf13 fix: remove pure lockfile flag from yarn installs 2022-06-20 11:13:10 +02:00
5 changed files with 23 additions and 30 deletions

View File

@@ -13,9 +13,6 @@ on:
jobs:
test:
defaults:
run:
working-directory: packages/scheduler
runs-on: ubuntu-latest
steps:
@@ -23,20 +20,16 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- run: yarn install --pure-lockfile
- run: yarn test
- run: yarn install
- run: yarn test:scheduler
publish-aws-ecr:
needs: test
defaults:
run:
working-directory: packages/scheduler
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: cp .env.sample .env
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
@@ -53,7 +46,7 @@ jobs:
ECR_REPOSITORY: scheduler-worker
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker build -f Dockerfile.scheduler -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG $ECR_REGISTRY/$ECR_REPOSITORY:dev
docker push $ECR_REGISTRY/$ECR_REPOSITORY:dev
@@ -61,14 +54,10 @@ jobs:
publish-docker-hub:
needs: test
defaults:
run:
working-directory: packages/scheduler
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: cp .env.sample .env
- name: Publish to Registry
env:
DOCKER_BUILDKIT: 1
@@ -78,14 +67,12 @@ jobs:
name: standardnotes/scheduler
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: Dockerfile.scheduler
tags: "dev,${{ github.sha }}"
deploy-worker:
needs: publish-aws-ecr
defaults:
run:
working-directory: packages/scheduler
runs-on: ubuntu-latest
steps:
@@ -119,9 +106,6 @@ jobs:
newrelic:
needs: [ deploy-worker ]
defaults:
run:
working-directory: packages/scheduler
runs-on: ubuntu-latest
steps:
@@ -138,9 +122,6 @@ jobs:
notify_discord:
needs: [ deploy-worker ]
defaults:
run:
working-directory: packages/scheduler
runs-on: ubuntu-latest
steps:

View File

@@ -16,13 +16,12 @@ RUN chown -R $UID:$GID .
USER scheduler
COPY --chown=$UID:$GID package.json yarn.lock /var/www/
COPY --chown=$UID:$GID packages/scheduler/package.json .yarnrc.yml /var/www/
COPY --chown=$UID:$GID .yarn /var/www/.yarn
COPY --chown=$UID:$GID packages/scheduler/dist /var/www/dist
COPY --chown=$UID:$GID packages/scheduler/docker /var/www/docker
RUN yarn install --pure-lockfile
COPY --chown=$UID:$GID . /var/www
RUN yarn build
RUN yarn install
ENTRYPOINT [ "docker/entrypoint.sh" ]

View File

@@ -13,6 +13,7 @@
"scripts": {
"lint": "yarn workspaces foreach -pt --parallel --jobs 10 --verbose run lint",
"test": "yarn workspaces foreach -pt --parallel --jobs 10 --verbose run test",
"test:scheduler": "yarn workspaces foreach -pt --verbose -R --from @standardnotes/scheduler-server run test",
"clean": "yarn workspaces foreach -pt --parallel --jobs 10 --verbose run clean",
"build:all": "yarn workspaces foreach -pt --verbose run build",
"setup:env": "yarn workspaces foreach -pt --verbose run setup:env",

View File

@@ -3,6 +3,18 @@
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.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
* docker building for scheduler ([a982c78](https://github.com/standardnotes/server/commit/a982c785419b70e6b3f4595070edc21acade6d19))
# [1.1.0-alpha.1](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.1.0-alpha.0...@standardnotes/scheduler-server@1.1.0-alpha.1) (2022-06-20)
### Bug Fixes
* remove pure lockfile flag from yarn installs ([586cded](https://github.com/standardnotes/server/commit/586cdedf13332677520d891392c65368f5dc2f1b))
# 1.1.0-alpha.0 (2022-06-20)
### Bug Fixes

View File

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