From 7ee53f1d67d62018b301cd11e4097bc4cb34b298 Mon Sep 17 00:00:00 2001 From: cuisongliu Date: Sun, 16 Jul 2023 20:28:48 +0800 Subject: [PATCH] build(main): add ci for latest (#3516) Signed-off-by: cuisongliu --- .github/workflows/services.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/services.yml b/.github/workflows/services.yml index f4e21f1c0ef..9cbe98d9125 100644 --- a/.github/workflows/services.yml +++ b/.github/workflows/services.yml @@ -223,13 +223,12 @@ jobs: sudo sealos build -t ${CLUSTER_IMAGE_NAME}-amd64 --platform linux/amd64 -f Kubefile sudo sealos build -t ${CLUSTER_IMAGE_NAME}-arm64 --platform linux/arm64 -f Kubefile sudo sealos images - bash docker/patch/manifest-cluster-images.sh $CLUSTER_IMAGE_NAME - name: Build ${{ matrix.module }}-service cluster image for latest - working-directory: service/${{ matrix.module }}/deploy run: | - CLUSTER_IMAGE_NAME_LATEST=${{ steps.prepare.outputs.cluster_repo }}:latest - sudo sealos build -t ${CLUSTER_IMAGE_NAME_LATEST}-amd64 --platform linux/amd64 -f Kubefile - sudo sealos build -t ${CLUSTER_IMAGE_NAME_LATEST}-arm64 --platform linux/arm64 -f Kubefile + CLUSTER_IMAGE_NAME=${{ steps.prepare.outputs.cluster_repo }}:${{ steps.prepare.outputs.tag_name }} + CLUSTER_IMAGE_NAME_LATEST=${{ steps.prepare.outputs.cluster_repo }}:${{ steps.prepare.outputs.cluster_repo }}:latest + sudo sealos tag ${CLUSTER_IMAGE_NAME}-amd64 ${CLUSTER_IMAGE_NAME_LATEST}-amd64 + sudo sealos tag ${CLUSTER_IMAGE_NAME}-amd64 ${CLUSTER_IMAGE_NAME_LATEST}-amd64 sudo sealos images bash docker/patch/manifest-cluster-images.sh $CLUSTER_IMAGE_NAME_LATEST - name: Renew issue and Sync Images