Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: Setup dockerfile + registry push
- Loading branch information
1 parent
5571968
commit a1cb878
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] |
a1cb878
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: