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

Updated the dependencies #148

Merged
merged 14 commits into from
Dec 15, 2023
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
Loading