From 39247a854798983f4f9e4579ab9be1485bd38487 Mon Sep 17 00:00:00 2001 From: Eugene Fang <1421884+fangeugene@users.noreply.github.com> Date: Sat, 20 Jun 2020 10:44:50 -0700 Subject: [PATCH 1/2] Update codecov action [nodeploy] --- .github/workflows/pull_request.yml | 4 +--- .github/workflows/push.yml | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 380d518..dfc168c 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -65,6 +65,4 @@ jobs: - name: Build run: npm run build - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1.0.0 - with: - token: ${{ secrets.CODECOV_TOKEN }} + uses: codecov/codecov-action@v1.0.7 diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 50a3f14..bccb55f 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -71,9 +71,7 @@ jobs: TBA_API_AUTH_KEY: ${{ secrets.TBA_API_AUTH_KEY }} run: npm run build - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1.0.0 - with: - token: ${{ secrets.CODECOV_TOKEN }} + uses: codecov/codecov-action@v1.0.7 - name: Archive production artifacts uses: actions/upload-artifact@v1 with: From e685e08131908f45aeb692c87ce6794dd5823f10 Mon Sep 17 00:00:00 2001 From: Jordan Miller Date: Sat, 20 Jun 2020 14:00:08 -0400 Subject: [PATCH 2/2] Add docker support (#26) * Add docker support * Trigger actions --- Dockerfile | 15 +++++++++++++++ docker-compose.yml | 19 +++++++++++++++++++ docker-entry.sh | 6 ++++++ 3 files changed, 40 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml create mode 100644 docker-entry.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b28444b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +# base image +FROM node:14 + +# set working directory +WORKDIR /app + +EXPOSE 3000 + +# add `/app/node_modules/.bin` to $PATH +ENV PATH /app/node_modules/.bin:$PATH + +# install and cache app dependencies +COPY package.json /app/package.json + +ENTRYPOINT ["/app/docker-entry.sh"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..da96898 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,19 @@ +version: "3" + +volumes: + pwa_node_modules: + +services: + pwa: + build: + context: . + dockerfile: ./Dockerfile + tty: true + command: npm run dev + env_file: + - .env + ports: + - 3000:3000 + volumes: + - ./:/app:delegated + - pwa_node_modules:/app/node_modules diff --git a/docker-entry.sh b/docker-entry.sh new file mode 100644 index 0000000..3d329a1 --- /dev/null +++ b/docker-entry.sh @@ -0,0 +1,6 @@ +#!/bin/sh +set -e + +npm install + +exec "$@"