From ebe1c14f73b5a1ead609895f934a299a00aa35f6 Mon Sep 17 00:00:00 2001 From: mereith Date: Fri, 24 Mar 2023 10:59:39 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B5=8B=E8=AF=95tag=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=89=93=E5=8C=85=E9=83=A8=E7=BD=B2=E5=88=B0=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 67d8ce56a..46c3eefba 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,8 +39,14 @@ jobs: file: ./Dockerfile build-args: | VAN_BLOG_BUILD_SERVER=http://localhost:3000 - VAN_BLOG_VERSIONS=test + VAN_BLOG_VERSIONS=test-${{ steps.get_version.outputs.VERSION }} platforms: linux/amd64 push: true tags: | "docker.io/mereith/van-blog:test-${{ steps.get_version.outputs.VERSION }}" + - name: 部署到测试环境 + uses: steebchen/kubectl@v2.0.0 + with: + config: ${{ secrets.K8S_CONFIG_DATA }} + command: set image deployment/blog-test van-blog=docker.io/mereith/van-blog:${{ steps.get_version.outputs.VERSION }} +