Skip to content

Commit

Permalink
Merge pull request #148 from EYBlockchain/swati/updates
Browse files Browse the repository at this point in the history
Updated the dependencies
  • Loading branch information
SwatiEY authored Dec 15, 2023
2 parents 9e2cca4 + 4484c55 commit 9de8056
Show file tree
Hide file tree
Showing 9 changed files with 8,536 additions and 6,182 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release updated

on:
push:
branches:
- swati/updates

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Login to Github Packages
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# - uses: codfish/semantic-release-action@master
# id: semantic
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

# - name: Build docker merkle-tree image
# run: docker build ./merkle-tree

# - run: echo ${{ steps.semantic.outputs.release-version }}

- name: Build and push UI docker image
uses: docker/build-push-action@v2
with:
context: ./merkle-tree
build-args: |
GPR_TOKEN=${{ secrets.GPR_TOKEN }}
tags: |
ghcr.io/eyblockchain/timber-updated:latest
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
push: true
10 changes: 8 additions & 2 deletions merkle-tree/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
FROM node:11.15
FROM node:iron-slim

ENV USERNAME="app"

RUN addgroup --gid 10001 $USERNAME && \
adduser --gid 10001 --uid 10001 --home /app $USERNAME

WORKDIR /app

COPY ./package.json ./package-lock.json ./
COPY ./src ./src
COPY ./test ./test
COPY ./.babelrc ./
RUN npm ci
RUN npm install

USER $USERNAME:$USERNAME
EXPOSE 80
CMD npm start
4 changes: 2 additions & 2 deletions merkle-tree/dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:11.15
FROM node:iron-slim

WORKDIR /app

COPY ./package.json ./package-lock.json ./
RUN npm ci
RUN npm i

EXPOSE 80
CMD npm run dev
Loading

0 comments on commit 9de8056

Please sign in to comment.