docker ci

This commit is contained in:
Robin Appelman 2021-07-31 15:12:33 +02:00
commit 58ee4aab9a

27
.github/workflows/docker.yaml vendored Normal file
View file

@ -0,0 +1,27 @@
name: docker-build
on:
push:
branches:
- 'main'
- 'master'
jobs:
docker:
runs-on: ubuntu-20.04
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: icewind1991/taspromto:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}