AWS Kubernetes deployment #991
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: AWS Kubernetes deployment | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Import Secrets | |
| uses: hashicorp/vault-action@v3 | |
| with: | |
| url: ${{ secrets.VAULT_ADDR }} | |
| token: ${{ secrets.CI_SECRET_READER_PERIODIC_TOKEN }} | |
| caCertificate: ${{ secrets.VAULTCA }} | |
| secrets: | | |
| ci/data/gh-workflows/universal-resolver-cluster aws-access-key-id | AWS_ACCESS_KEY_ID ; | |
| ci/data/gh-workflows/universal-resolver-cluster aws-secret-access-key | AWS_SECRET_ACCESS_KEY ; | |
| ci/data/gh-workflows/universal-resolver-cluster rpc-url-testnet | RPC_URL_TESTNET ; | |
| ci/data/gh-workflows/universal-resolver-cluster rpc-cert-testnet | RPC_CERT_TESTNET | |
| - name: Deploy to AWS Kubernetes Cluster | |
| uses: ./ci/deploy-k8s-aws | |
| with: | |
| kube-config-data: ${{ secrets.KUBE_CONFIG_DATA_BASE64_UNI_RESOLVER_PROD }} | |
| aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }} | |
| aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }} | |
| rpc-url-testnet: ${{ env.RPC_URL_TESTNET }} | |
| rpc-cert-testnet: ${{ env.RPC_CERT_TESTNET }} | |
| slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} | |
| github-server-url: ${{ github.server_url }} | |
| github-repository: ${{ github.repository }} | |
| github-run-id: ${{ github.run_id }} | |
| - name: Slack notification | |
| if: failure() | |
| uses: 8398a7/action-slack@v3 | |
| with: | |
| status: ${{ job.status }} | |
| fields: repo,commit,action,eventName,ref,workflow | |
| env: | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |