Create Docker_build.yml

This commit is contained in:
Florian BEZANNIER
2021-05-07 10:33:42 +02:00
committed by GitHub
parent 88191ae0b9
commit 1a8aaa583a
+19
View File
@@ -0,0 +1,19 @@
name: Publish Docker image
on:
release:
types: [published]
workflow_dispatch:
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: flobz/public/
tag_with_ref: true