Create and push the latest tag if the branch is main (stable) (#831)

* Fix the styling issue in the badges

* Create and push the `latest` tag if the branch is `main` (stable)

* Build the for `latest` tag as well
This commit is contained in:
M. Mert Yıldıran 2022-02-19 18:09:18 +03:00 committed by GitHub
parent 27fa0afb72
commit 69ee8752d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -58,6 +58,7 @@ jobs:
up9inc/mizu up9inc/mizu
tags: | tags: |
type=raw,${{ steps.versioning.outputs.version }} type=raw,${{ steps.versioning.outputs.version }}
type=raw,value=latest,enable=${{ steps.condval.outputs.value == 'stable' }}
flavor: | flavor: |
latest=auto latest=auto
prefix= prefix=
@ -143,6 +144,7 @@ jobs:
${{ steps.base_image_step.outputs.image }} ${{ steps.base_image_step.outputs.image }}
tags: | tags: |
type=raw,${{ steps.versioning.outputs.version }} type=raw,${{ steps.versioning.outputs.version }}
type=raw,value=latest,enable=${{ steps.condval.outputs.value == 'stable' }}
flavor: | flavor: |
latest=auto latest=auto
prefix= prefix=
@ -205,6 +207,7 @@ jobs:
up9inc/mizu up9inc/mizu
tags: | tags: |
type=raw,${{ steps.versioning.outputs.version }} type=raw,${{ steps.versioning.outputs.version }}
type=raw,value=latest,enable=${{ steps.condval.outputs.value == 'stable' }}
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v1 uses: docker/login-action@v1

View File

@ -8,10 +8,10 @@
<img alt="GitHub Latest Release" src="https://img.shields.io/github/v/release/up9inc/mizu?logo=GitHub&style=flat-square"> <img alt="GitHub Latest Release" src="https://img.shields.io/github/v/release/up9inc/mizu?logo=GitHub&style=flat-square">
</a> </a>
<a href="https://hub.docker.com/r/up9inc/mizu"> <a href="https://hub.docker.com/r/up9inc/mizu">
<img alt="Docker pulls" src="https://img.shields.io/docker/pulls/up9inc/mizu?color=%23099cec"> <img alt="Docker pulls" src="https://img.shields.io/docker/pulls/up9inc/mizu?color=%23099cec&logo=Docker&style=flat-square">
</a> </a>
<a href="https://hub.docker.com/r/up9inc/mizu"> <a href="https://hub.docker.com/r/up9inc/mizu">
<img alt="Image size" src="https://img.shields.io/docker/image-size/up9inc/mizu/latest"> <img alt="Image size" src="https://img.shields.io/docker/image-size/up9inc/mizu/latest?logo=Docker&style=flat-square">
</a> </a>
<a href="https://join.slack.com/t/up9/shared_invite/zt-tfjnduli-QzlR8VV4Z1w3YnPIAJfhlQ"> <a href="https://join.slack.com/t/up9/shared_invite/zt-tfjnduli-QzlR8VV4Z1w3YnPIAJfhlQ">
<img alt="Slack" src="https://img.shields.io/badge/slack-join_chat-white.svg?logo=slack&style=social"> <img alt="Slack" src="https://img.shields.io/badge/slack-join_chat-white.svg?logo=slack&style=social">