Compare commits

..

8 Commits

Author SHA1 Message Date
standardci
eb30692f6a chore(release): publish
- @standardnotes/scheduler-server@1.1.0-alpha.7
2022-06-22 08:23:25 +00:00
Karol Sójko
143b215ddc Merge branch 'develop' of github.com:standardnotes/server into develop 2022-06-22 10:22:36 +02:00
Karol Sójko
2a1b9a6679 fix: update node version to latest lts 2022-06-22 10:21:23 +02:00
standardci
3ca49fee1a chore(release): publish
- @standardnotes/scheduler-server@1.1.0-alpha.6
2022-06-22 08:18:34 +00:00
Karol Sójko
8c5c52770b fix: add immutable yarn install 2022-06-22 10:17:47 +02:00
Karol Sójko
48f6753090 Merge branch 'develop' of github.com:standardnotes/server into develop 2022-06-21 16:05:25 +02:00
Karol Sójko
e8d13627f8 fix: build the app before packagin into a Docker image 2022-06-21 16:04:46 +02:00
Karol Sójko
e90caeac32 fix: docker hub releasing 2022-06-21 15:10:53 +02:00
6 changed files with 32 additions and 18 deletions

View File

@@ -30,6 +30,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build locally
run: yarn build:scheduler
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
@@ -58,22 +60,19 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build image
run: yarn docker build @standardnotes/scheduler-server -t standardnotes/scheduler
- name: Publish to Registry (dev tag)
uses: manusa/actions-publish-docker@v1.1.2
- name: Build locally
run: yarn build:scheduler
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
name: standardnotes/scheduler
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tag: "dev"
- name: Publish to Registry (sha tag)
uses: manusa/actions-publish-docker@v1.1.2
with:
name: standardnotes/scheduler
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tag: "${{ github.sha }}"
- name: Build, tag, and push image to Docker Hub
run: |
yarn docker build @standardnotes/scheduler-server -t standardnotes/scheduler:${{ github.sha }}
docker push standardnotes/scheduler:${{ github.sha }}
docker tag standardnotes/scheduler:${{ github.sha }} standardnotes/scheduler:dev
docker push standardnotes/scheduler:dev
deploy-worker:
needs: publish-aws-ecr

View File

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

2
.nvmrc
View File

@@ -1 +1 @@
16.11.1
16.15.1

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.7](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.1.0-alpha.6...@standardnotes/scheduler-server@1.1.0-alpha.7) (2022-06-22)
### Bug Fixes
* update node version to latest lts ([2a1b9a6](https://github.com/standardnotes/server/commit/2a1b9a66797b046565b63183cb17e4b335de492f))
# [1.1.0-alpha.6](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.1.0-alpha.5...@standardnotes/scheduler-server@1.1.0-alpha.6) (2022-06-22)
### Bug Fixes
* build the app before packagin into a Docker image ([e8d1362](https://github.com/standardnotes/server/commit/e8d13627f807e71bd3777595137a6f1ecd43c5ed))
# [1.1.0-alpha.5](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.1.0-alpha.4...@standardnotes/scheduler-server@1.1.0-alpha.5) (2022-06-21)
### Bug Fixes

View File

@@ -1,4 +1,4 @@
FROM node:16.13.1-alpine AS builder
FROM node:16.15.1-alpine AS builder
# Install dependencies for building native libraries
RUN apk add --update git openssh-client python3 alpine-sdk
@@ -10,7 +10,7 @@ COPY manifests ./
RUN yarn install --immutable
FROM node:16.13.1-alpine
FROM node:16.15.1-alpine
WORKDIR /workspace
@@ -20,6 +20,6 @@ COPY --from=builder /workspace ./
# docker-build plugin runs `yarn pack` in all workspace dependencies and copies them to `packs` folder.
COPY packs ./
ENTRYPOINT [ "packages/scheduler/docker/entrypoint.sh" ]
ENTRYPOINT [ "/workspace/packages/scheduler/docker/entrypoint.sh" ]
CMD [ "start-worker" ]

View File

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