From baf1c060d04bc255a179ccd9a21514d0b8f43c3b Mon Sep 17 00:00:00 2001 From: Casey Scarborough Date: Sat, 2 Sep 2023 23:59:25 -0400 Subject: [PATCH] Add workflow for automatically building and pushing image to Dockerhub --- .github/workflows/release.yaml | 30 ++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..c630346 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,30 @@ +name: Publish Release +on: + push: + branches: [ master ] + release: + types: [ published ] +jobs: + release: + name: Docker Hub Release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Login to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v3 + with: + images: caseyscarborough/yomichan-audio-server + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} diff --git a/README.md b/README.md index e1feb23..defcb95 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Yomichan Logo Yomichan Audio Server +[![](https://github.com/caseyscarborough/yomichan-audio-server/actions/workflows/release.yml/badge.svg)](https://github.com/caseyscarborough/yomichan-audio-server/actions/workflows/release.yml) + This is a self-hosted audio server for Yomichan to fetch audio files from, using a database containing over 250,000 unique expressions. With this setup, you are able to create Anki cards nearly instantaneously,