From bb1d897b60ca86397700a5627d663dc8c5798e57 Mon Sep 17 00:00:00 2001 From: rick <1450685+LinuxSuRen@users.noreply.github.com> Date: Wed, 18 May 2022 18:04:22 +0800 Subject: [PATCH] Add prefix v into the image tag name --- .github/workflows/build.yaml | 4 ++-- .github/workflows/pull-request.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4e674c1..7326946 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -57,12 +57,12 @@ jobs: export PATH=.:$PATH:phantomjs/bin jcli cwp --install-artifacts --config-path formula.yaml --value-set output=push \ - --value-set tag=kubespheredev/ks-jenkins:${{ steps.build_env.outputs.version }} \ + --value-set tag=kubespheredev/ks-jenkins:v${{ steps.build_env.outputs.version }} \ --value-set platform=linux/amd64,linux/arm64 - name: Push Image ghcr.io run: | export PATH=.:$PATH:phantomjs/bin docker login ghcr.io --username ${{ secrets.GH_USER }} --password ${{secrets.GH_TOKEN}} jcli cwp --install-artifacts --config-path formula.yaml --value-set output=push \ - --value-set tag=ghcr.io/kubesphere/ks-jenkins:${{ steps.build_env.outputs.version }} \ + --value-set tag=ghcr.io/kubesphere/ks-jenkins:v${{ steps.build_env.outputs.version }} \ --value-set platform=linux/amd64,linux/arm64 diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index ca4b8dd..02f032e 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -54,7 +54,7 @@ jobs: jcli cwp --install-artifacts --config-path formula.yaml \ --value-set output=load \ - --value-set tag=kubespheredev/ks-jenkins:${{ steps.build_env.outputs.version }} \ + --value-set tag=kubespheredev/ks-jenkins:v${{ steps.build_env.outputs.version }} \ --value-set platform=linux/amd64 trivy-scan: runs-on: ubuntu-latest