add docker ci

This commit is contained in:
BaoXuebin 2021-12-05 13:20:00 +08:00
parent d77b67e72f
commit 5bcbd0d614
1 changed files with 21 additions and 0 deletions

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

@ -0,0 +1,21 @@
name: Publish Docker image
on:
release:
types: [published]
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: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push to Docker Hub
uses: docker/build-push-action@v2
with:
push: true
tags: xdbin/beancount-gs:latest