forked from kubesphere/console
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (48 loc) · 1.5 KB
/
deploy-backend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#name: Deploy-Backend
#
#on:
# workflow_dispatch:
#
#jobs:
# Deploy-Backend:
# runs-on: ubuntu-latest
# timeout-minutes: 150
# strategy:
# max-parallel: 1
# env:
# working-directory: ./.github/workflows/deploy-backend
# steps:
# - uses: actions/[email protected]
#
# - name: setup terraform
# working-directory: ${{env.working-directory}}
# run: |
# wget https://releases.hashicorp.com/terraform/0.13.0/terraform_0.13.0_linux_amd64.zip
# unzip terraform_0.13.0_linux_amd64.zip
#
# - name: setup secret
# working-directory: ${{env.working-directory}}
# run: |
# sed -i 's/QING_ACCESS_KEY/${{ secrets.QINGCLOUD_ACCESS_KEY }}/g' var.tf
# sed -i 's/QING_SECRET_KEY/${{ secrets.QINGCLOUD_SECRET_KEY }}/g' var.tf
# sed -i 's/QING_EIP_ID/${{ secrets.QING_EIP_ID }}/g' var.tf
# sed -i 's/QING_EIP/${{ secrets.QING_EIP }}/g' var.tf
# sed -i 's/QING_PASSWORD/${{ secrets.QING_PASSWORD }}/g' var.tf
# sed -i 's/GITHUB_REPOSITORY/${{ github.repository_owner }}-tf-cd-console/g' var.tf
#
# - name: init
# working-directory: ${{env.working-directory}}
# run: |
# terraform init
#
# - name: destory
# working-directory: ${{env.working-directory}}
# continue-on-error: true
# run: |
# echo 'yes' | terraform destroy
#
# - name: install kubesphere
# working-directory: ${{env.working-directory}}
# timeout-minutes: 90
# run: |
# terraform apply -input=false -auto-approve