Skip to content

Commit

Permalink
chore: 测试tag自动打包部署到测试环境
Browse files Browse the repository at this point in the history
  • Loading branch information
Mereithhh committed Mar 24, 2023
1 parent 3fa4c7e commit ebe1c14
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit ebe1c14

Please sign in to comment.