Skip to content

Build process

Build process #35

Workflow file for this run

name: build process
run-name: Build process
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
push:
branches:
- "main"
pull_request: {}
jobs:
trigger-build-containers:
runs-on: ubuntu-latest
steps:
- name: Start containers build
uses: actions/github-script@v7
with:
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'build-containers.yml',
ref: context.ref,
});
wait-for-build-containers:
runs-on: ubuntu-latest
needs: trigger-build-containers
steps:
- name: Wait for build-containersto complete
uses: lewagon/wait-on-check-action@v1.3.4
with:
ref: ${{ github.ref }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
check-name: 'build-containers (ubuntu-latest)'
wait-interval: 10
trigger-build-containers-optional:
runs-on: ubuntu-latest
needs:
- wait-for-build-containers
steps:
- name: Start optional containers
uses: actions/github-script@v7
with:
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'build-container-code.yml',
ref: context.ref,
});