From 69ee8752d032ad9bf25a3cc4f7392fde9d619b81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Mert=20Y=C4=B1ld=C4=B1ran?= Date: Sat, 19 Feb 2022 18:09:18 +0300 Subject: [PATCH] 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 --- .github/workflows/release.yml | 3 +++ README.md | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d026b045c..b2ad7a4b8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -58,6 +58,7 @@ jobs: up9inc/mizu tags: | type=raw,${{ steps.versioning.outputs.version }} + type=raw,value=latest,enable=${{ steps.condval.outputs.value == 'stable' }} flavor: | latest=auto prefix= @@ -143,6 +144,7 @@ jobs: ${{ steps.base_image_step.outputs.image }} tags: | type=raw,${{ steps.versioning.outputs.version }} + type=raw,value=latest,enable=${{ steps.condval.outputs.value == 'stable' }} flavor: | latest=auto prefix= @@ -205,6 +207,7 @@ jobs: up9inc/mizu tags: | type=raw,${{ steps.versioning.outputs.version }} + type=raw,value=latest,enable=${{ steps.condval.outputs.value == 'stable' }} - name: Login to Docker Hub uses: docker/login-action@v1 diff --git a/README.md b/README.md index 77928e7a6..38f1aad14 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,10 @@ GitHub Latest Release - Docker pulls + Docker pulls - Image size + Image size Slack