Add github action to automatically build docker images

This commit is contained in:
Roland Geider
2020-08-10 14:23:44 +02:00
parent 13c4aaf4a2
commit f67a10b244

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

@@ -0,0 +1,27 @@
name: Build and push Docker images
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
- steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build dev image
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
cache_froms: wger/base:2.0-dev
repository: wger/devel
dockerfile: extras/docker/development/Dockerfile
tags: latest,2.0-dev
tag_with_ref: true