-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (42 loc) · 1.52 KB
/
deploy-test.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
name: Deploy Testnet
on: [workflow_dispatch]
concurrency: deploy-bridge-balancer-testnet
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: rlespinasse/github-slug-action@v4
- name: Rancher Deploy ${{ matrix.relayer }}
uses: LATOKEN/[email protected]
with:
rancher_url: ${{ secrets.TEST_RANCHER_URL_API }}
rancher_access: ${{ secrets.TEST_RANCHER_ACCESS_KEY}}
rancher_key: ${{ secrets.TEST_RANCHER_SECRET_KEY }}
project_id: 1a682
stack_name: lachain-testnet-balancer-bridge
service_name: bridge-balancer
docker_image: ghcr.io/${{ env.GITHUB_REPOSITORY_OWNER_PART_SLUG }}/${{ env.GITHUB_REPOSITORY_NAME_PART_SLUG }}:${{ env.GITHUB_REF_SLUG_URL }}
retry: 90
pull: true
timeout: 1
- name: Send release message to slack chat
id: slack
uses: slackapi/[email protected]
with:
payload: |
{
"text": "New release balancer-bridge:${{ github.ref_name }} deployed to Testnet by ${{ github.actor }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "New release balancer-bridge:${{ github.ref_name }} deployed to Testnet by ${{ github.actor }}"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.TEST_RELAYERS_SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK