Skip to content

Add readiness signal status to health API (#802) #420

Add readiness signal status to health API (#802)

Add readiness signal status to health API (#802) #420

name: Deploy And SmokeTests
on:
push:
branches:
- develop
jobs:
cancel_running_workflows:
name: Cancel running workflows
runs-on: ubuntu-22.04
steps:
- name: cancel running workflows
uses: RDXWorks-actions/cancel-workflow-action@main
with:
access_token: ${{ github.token }}
deploy:
permissions:
id-token: write
contents: read
name: Deploy to Gilganet
runs-on: ubuntu-22.04
steps:
- uses: RDXWorks-actions/checkout@main
with:
# Shallow clones should be disabled for a better relevancy of analysis
fetch-depth: 0
- uses: ./.github/actions/fetch-secrets
with:
role_name: "${{ secrets.BABYLON_SECRETS_ROLE_ARN }}"
app_name: "babylon-node"
step_name: "deploy"
secret_prefix: "JENKINS"
secret_name: "github-actions/radixdlt/babylon-node/jenkins-api-token"
parse_json: true
- name: Deploy
uses: RDXWorks-actions/jenkins-job-trigger-action@master
with:
jenkins_url: "${{ env.JENKINS_URL }}"
jenkins_user: ${{ env.JENKINS_USER }}
jenkins_token: ${{ env.JENKINS_TOKEN }}
job_name: "v2-jobs/job/babylon-deploy-main"
job_params: |
{
"NETWORK_NAME":"gilganet",
"FEATURE_BRANCH_NAME":"develop",
"WIPE_LEDGER":true
}
job_timeout: "3600"
smoke_test:
permissions:
id-token: write
contents: read
needs:
- deploy
name: Run smoke tests
runs-on: ubuntu-22.04
steps:
- uses: RDXWorks-actions/checkout@main
with:
# Shallow clones should be disabled for a better relevancy of analysis
fetch-depth: 0
- uses: ./.github/actions/fetch-secrets
with:
role_name: "${{ secrets.BABYLON_SECRETS_ROLE_ARN }}"
app_name: "babylon-node"
step_name: "smoke_test"
secret_prefix: "JENKINS"
secret_name: "github-actions/radixdlt/babylon-node/jenkins-api-token"
parse_json: true
- name: SmokeTests
uses: RDXWorks-actions/jenkins-job-trigger-action@master
with:
jenkins_url: "${{ env.JENKINS_URL }}"
jenkins_user: ${{ env.JENKINS_USER }}
jenkins_token: ${{ env.JENKINS_TOKEN }}
job_name: "v2-jobs/job/babylon-testnet-smoke-tests"
job_params: |
{"networkName":"gilganet"}
job_timeout: "3600"