Add workflow

This commit is contained in:
Travis Shivers 2020-07-21 16:54:59 -05:00
parent 091eee0363
commit acef450ebb
No known key found for this signature in database
GPG Key ID: EE4CC2891B8FCD33
2 changed files with 19 additions and 1 deletions

17
.github/workflows/docker.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Docker Publishing
on: [push, pull_request]
jobs:
build-publish:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build and push Docker images
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: ttshivers/synclounge
tag_with_ref: true

View File

@ -11,7 +11,8 @@ RUN npm run build
# production environment
FROM node:current-alpine as production-stage
WORKDIR /app
RUN npm install -g syncloungesocket@2.0.5 nconf fs
COPY docker-entrypoint.sh .
COPY config config
COPY --from=build-stage /app/dist dist
RUN npm install -g syncloungesocket@2.0.5 nconf fs
ENTRYPOINT ["./docker-entrypoint.sh"]