chore(cicd): add docker workflow and refine READMEs (#40)

This commit is contained in:
Hexxa 2021-02-02 19:09:03 +08:00 committed by GitHub
parent 76334b808d
commit 8bf1aebaf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 67 additions and 13 deletions

25
.github/workflows/cd_docker.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: cd-docker
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: Push to Docker Hub with tag
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: hexxa/quickshare
tag_with_ref: true
- name: Push to Docker Hub without tag
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: hexxa/quickshare
tag_with_ref: false