Skip to content

Commit

Permalink
feat: add deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
lcxfs1991 committed Jan 22, 2024
1 parent 398820f commit 4a9531a
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,12 @@ jobs:
push: true
platforms: linux/amd64
tags: ccr.ccs.tencentyun.com/docschina/rollup-docs-cn:${{ env.BRANCH_NAME }}-${{ env.TIMESTAMP }}
# secrets: |
# GIT_AUTH_TOKEN=${{ secrets.CHECKOUT_REPO_TOKEN }}

# - name: Deployment
# uses: TencentCloud/cli-action@v1
# with:
# secret_id: ${{ secrets.SECRET_ID }}
# secret_key: ${{ secrets.SECRET_KEY }}
# region: ${{ secrets.LIGHTHOUSE_REGION }}
# commands: tat InvokeCommand --cli-unfold-argument --region ap-shanghai --CommandId cmd-boc4aaiw --InstanceIds lhins-nkwfootc --Parameters '{"deployment":"rollup","image":"ccr.ccs.tencentyun.com/docschina/rollup-docs-cn:${{ env.BRANCH_NAME }}-${{ env.TIMESTAMP }}"}'
# output_format: json
- name: Deployment
uses: TencentCloud/cli-action@v1
with:
secret_id: ${{ secrets.SECRET_ID }}
secret_key: ${{ secrets.SECRET_KEY }}
region: ${{ secrets.LIGHTHOUSE_REGION }}
commands: tat InvokeCommand --cli-unfold-argument --region ap-shanghai --CommandId cmd-boc4aaiw --InstanceIds lhins-nkwfootc --Parameters '{"deployment":"rollup","image":"ccr.ccs.tencentyun.com/docschina/rollup-docs-cn:${{ env.BRANCH_NAME }}-${{ env.TIMESTAMP }}"}'
output_format: json

0 comments on commit 4a9531a

Please sign in to comment.