Add workflow
This commit is contained in:
parent
091eee0363
commit
acef450ebb
|
@ -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
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue