From b87d5334d12b7ec5a8e2741a51015c9cfdf569b4 Mon Sep 17 00:00:00 2001 From: zyy17 Date: Thu, 10 Nov 2022 13:25:45 +0800 Subject: [PATCH] ci: modify docker image tag and push the latest tag image (#419) --- .github/workflows/release.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e02e35d8f4..53078c101e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -162,6 +162,12 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Configure tag # If the release tag is v0.1.0, then the image version tag will be 0.1.0. + shell: bash + run: | + VERSION=${{ github.ref_name }} + echo "VERSION=${VERSION:1}" >> $GITHUB_ENV + - name: Set up QEMU uses: docker/setup-qemu-action@v2 @@ -176,5 +182,6 @@ jobs: push: true platforms: linux/amd64,linux/arm64 tags: | - ghcr.io/greptimeteam/greptimedb:${{ github.ref_name }} - greptime/greptimedb:${{ github.ref_name }} + greptime/greptimedb:latest + greptime/greptimedb:${{ env.VERSION }} + ghcr.io/greptimeteam/greptimedb:${{ env.VERSION }}