Build docker images on merge into master (#29)

* Build docker images on merge into master

* Add username and password to login in docker hub
This commit is contained in:
Marco Vito Moscaritolo 2020-05-16 19:29:23 +02:00 committed by GitHub
parent 022ff01309
commit 2e6dc7962f
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@v2
- name: Build and push Docker images
uses: docker/build-push-action@v1.1.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: caddy/ingress
tag_with_ref: true
tag_with_sha: true