Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release #241

Merged
merged 4 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,10 @@ jobs:
- run: npx semantic-release@22.0.12
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: benc-uk/workflow-dispatch@v1
with:
workflow: upgrade-services.yaml
ref: master
repo: restorecommerce/charts
token: "${{ secrets.CHARTS_WORKFLOW_TOKEN }}"
20 changes: 5 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,39 +1,29 @@
### Build
FROM node:20.8.0-alpine3.18 as build
FROM node:20.11.1-alpine3.19 as build
ENV NO_UPDATE_NOTIFIER=true

USER node
ARG APP_HOME=/home/node/srv
WORKDIR $APP_HOME

COPY package.json package.json
COPY package-lock.json package-lock.json

RUN npm ci

COPY --chown=node:node . .

RUN npm ci
RUN npm run build


### Deployment
FROM node:20.8.0-alpine3.18 as deployment
FROM node:20.11.1-alpine3.19 as deployment

ENV NO_UPDATE_NOTIFIER=true

USER node
ARG APP_HOME=/home/node/srv
WORKDIR $APP_HOME

COPY package.json package.json
COPY package-lock.json package-lock.json

COPY --chown=node:node . $APP_HOME
COPY --chown=node:node ./cfg $APP_HOME/cfg
COPY --chown=node:node --from=build $APP_HOME/lib $APP_HOME/lib

EXPOSE 50051

USER root
USER node

CMD [ "npm", "start" ]
CMD [ "node", "./lib/start.cjs" ]
Loading
Loading