-
Notifications
You must be signed in to change notification settings - Fork 59
65 lines (58 loc) · 2.01 KB
/
deploy-to-testnet.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
name: Deploy to Testnet
on:
workflow_dispatch:
inputs:
tag:
description: 'aleph-node git tag to deploy to Testnet'
type: string
required: true
# there might be only one deployment to the Testnet at a time
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
check-vars-and-secrets:
name: Check vars and secrets
uses: ./.github/workflows/_check-vars-and-secrets.yml
secrets: inherit
deploy-to-testnet:
needs: [check-vars-and-secrets]
name: Deploy new aleph-node image to Testnet EKS
uses: ./.github/workflows/_update-node-image-infra.yml
with:
env: testnet
tag: ${{ inputs.tag }}
secrets: inherit
push-dockerhub-image-testnet:
needs: [deploy-to-testnet]
runs-on: ubuntu-20.04
steps:
- name: Get docker image names
id: get-docker-image-names
uses: Cardinal-Cryptography/aleph-node/.github/actions/get-docker-image-names@main
with:
ecr-repo: ${{ vars.ECR_ALEPH_NODE_REPO }}
dockerhub-repo: ${{ vars.DOCKERHUB_ALEPH_NODE_REPO }}
tag: ${{ inputs.tag }}
- name: Build and push Docker Hub image for Testnet
uses: ./.github/actions/build-and-push-dockerhub-image
with:
source-image: ${{ steps.get-docker-image-names.outputs.ecr-deploy-image }}
target-image: ${{ steps.get-docker-image-names.outputs.dockerhub-testnet-image }}
additional-image:
${{ steps.get-docker-image-names.outputs.dockerhub-testnet-latest-image }}
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub-password: ${{ secrets.DOCKERHUB_PASSWORD }}
slack:
name: Slack notification
runs-on: ubuntu-20.04
needs: [push-dockerhub-image-testnet]
if: always()
steps:
- name: Send Slack message
uses: Cardinal-Cryptography/github-actions/slack-notification@v7
with:
notify-on: "always"
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_DEV_ONDUTY }}