Create dockerimage.yml

This commit is contained in:
Alex Sosnovskiy 2019-12-16 19:02:12 +03:00 committed by GitHub
parent 3398d65d2d
commit 279d43f49b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
.github/workflows/dockerimage.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Docker Image CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build the Docker image
run: docker build . --file Dockerfile --tag peerjs/peerjs-server:latest
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: peerjs/peerjs-server:latest
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}