From a24e26678acb4158a4a223162fe082ee8b7c561c Mon Sep 17 00:00:00 2001 From: krateng Date: Wed, 15 Dec 2021 19:47:34 +0100 Subject: [PATCH] Updated Dockerhub workflow --- .github/workflows/dockerhub.yml | 6 ++---- README.md | 9 +++++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index 2e01779..b7b18fb 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -3,7 +3,7 @@ name: Publish Docker image to Dockerhub on: push: tags: - - '*.*.*' + - 'v*' jobs: push_to_registry: @@ -27,11 +27,9 @@ jobs: images: krateng/maloja # generate Docker tags based on the following events/attributes tags: | - type=raw,value=latest,enable=${{ endsWith(github.ref, 'master') }} - type=ref,event=branch,enable=${{ !endsWith(github.ref, 'master') }} type=semver,pattern={{version}} flavor: | - latest=false + latest=true - name: Build and push Docker image uses: docker/build-push-action@v2 diff --git a/README.md b/README.md index cec9e58..601a234 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ # Maloja -[![](https://img.shields.io/pypi/v/malojaserver?style=for-the-badge)](https://pypi.org/project/malojaserver/) +[![](https://img.shields.io/github/v/tag/krateng/maloja?label=GitHub&style=for-the-badge)](https://github.com/krateng/maloja) +[![](https://img.shields.io/pypi/v/malojaserver?label=PyPI&style=for-the-badge)](https://pypi.org/project/malojaserver/) +[![](https://img.shields.io/docker/v/krateng/maloja?label=Docker&style=for-the-badge)](https://hub.docker.com/r/krateng/maloja) + [![](https://img.shields.io/pypi/l/malojaserver?style=for-the-badge)](https://github.com/krateng/maloja/blob/master/LICENSE) [![](https://img.shields.io/codeclimate/maintainability/krateng/maloja?style=for-the-badge)](https://codeclimate.com/github/krateng/maloja) -[![](https://img.shields.io/docker/pulls/krateng/maloja?style=for-the-badge)](https://hub.docker.com/r/krateng/maloja) - Simple self-hosted music scrobble database to create personal listening statistics. No recommendations, no social network, no nonsense. @@ -91,7 +92,7 @@ Of note for docker users are these settings which should be passed as environmen The [`Dockerfile`](Dockerfile) builds Maloja from source. Images are available on [**Dockerhub**](https://hub.docker.com/r/krateng/maloja): -* `latest` -- image is built from the `master` branch of this repository +* `latest` -- image is built from the latest official release * `X.XX.XX` -- images are built from the [repository tags](https://github.com/krateng/maloja/tags) and *should* coincide with [pypi versions](https://pypi.org/project/malojaserver/) of maloja #### From PyPi