1
0
Fork 0
mirror of https://codeberg.org/demostf/postgres_refresh.git synced 2026-06-03 17:14:06 +02:00

docker ci

This commit is contained in:
Robin Appelman 2022-01-23 14:45:18 +01:00
commit 1811101f25

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

@ -0,0 +1,29 @@
name: docker-build
on:
push:
branches:
- 'master'
- 'main'
repository_dispatch:
types: [ build ]
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: demostf/postgres_refresh:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}