Skip to content

Commit

Permalink
server: Setup dockerfile + registry push
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Jan 10, 2021
1 parent 5571968 commit a1cb878
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/server.yml
@@ -0,0 +1,17 @@

name: deploy server
on: [push]

jobs:
deploy:
name: deploy server
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build Dockerfile.server
run: |
docker build . -t evanpurkhiser/prolink-tools-server -f conf/Dockerfile.server
- name: Publish
run: |
docker login --username=evanpurkhiser --password-stdin <<< "${{ secrets.DOCKER_HUB_TOKEN }}"
docker push evanpurkhiser/prolink-tools-server:latest
13 changes: 13 additions & 0 deletions conf/Dockerfile.server
@@ -0,0 +1,13 @@
FROM node:10

RUN mkdir /app
WORKDIR /app

COPY package.json yarn.lock /app/
RUN yarn

COPY src /app/src/
COPY tsconfig.json /app/

EXPOSE 8888
CMD ["yarn", "start-server"]

1 comment on commit a1cb878

@vercel
Copy link

@vercel vercel bot commented on a1cb878 Jan 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.