Skip to content

Commit

Permalink
Merge pull request #2 from UniqueNetwork/workflow
Browse files Browse the repository at this point in the history
add workflow & Dockerfile
  • Loading branch information
BuddyGlas authored May 20, 2024
2 parents de6ea29 + 8c114a8 commit 2592592
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and Deploy

on:
push:
branches:
- master/**
- subwallet/**
workflow_dispatch:
inputs:
tag:
type: string
description: tag
default: accounts-react
is_latest:
type: boolean
description: also push latest tag
default: true

jobs:
build:
name: Build and push Docker Image
uses: UniqueNetwork/web-deploy/.github/workflows/build-docker-image.yml@master
secrets: inherit
with:
tag: accounts-react
dockerfile: ./Dockerfile
target: static
is_latest: ${{ github.event.inputs.is_latest }}

# todo: implement, just a placeholder for now
deploy:
needs: [build]
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Echo
run: echo "Deploying"
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM node:lts

EXPOSE 3000
WORKDIR /
COPY . .
RUN yarn install

CMD ["yarn", "start"]

0 comments on commit 2592592

Please sign in to comment.