diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml new file mode 100644 index 0000000..5984fc0 --- /dev/null +++ b/.github/workflows/build-and-deploy.yml @@ -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" diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..79811a2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM node:lts + +EXPOSE 3000 +WORKDIR / +COPY . . +RUN yarn install + +CMD ["yarn", "start"]