Skip to content

Run cluster deployment on PRs #4

Run cluster deployment on PRs

Run cluster deployment on PRs #4

name: Deploy and test cluster
on:
pull_request
permissions:
contents: read
jobs:
await-image:
name: Await docker image
runs-on: ubuntu-latest
steps:
- name: Wait for image to be built succeed
uses: lewagon/wait-on-check-action@v1.3.4
with:
ref: ${{ github.sha }}
check-name: 'build'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
deploy:
uses: ./.github/workflows/bare-metal-deploy.yml
with:
runs_on: self-hosted
cluster: ${{ github.event.inputs.cluster }}
docker_image: ${{ github.event.inputs.docker_image }}
sbcli_source: ${{ github.repositoryUrl }}@${{ github.sha }}
test:
needs: deploy
uses: ./.github/workflows/api-test.yml
with:
runs_on: self-hosted
cluster_id: ${{ needs.deploy.outputs.cluster_id }}
cluster_ip: ${{ needs.deploy.outputs.cluster_ip }}
cluster_secret: ${{ needs.deploy.outputs.cluster_secret }}