Skip to content

Commit

Permalink
ci: add Rolling CI workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
  • Loading branch information
Kenji Miyake committed Dec 1, 2022
1 parent 24b1d45 commit 75f04c8
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build-rolling.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: build-rolling

on:
schedule:
- cron: 0 12 * * *
workflow_dispatch:

jobs:
build-rolling:
runs-on: ubuntu-latest
steps:
- name: Trigger workflow
uses: actions/github-script@v6
with:
script: |
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'build-main.yaml',
ref: 'rolling',
})
build-rolling-self-hosted:
runs-on: [self-hosted, linux, ARM64]
steps:
- name: Trigger workflow
uses: actions/github-script@v6
with:
script: |
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'build-main-self-hosted.yaml',
ref: 'rolling',
})
39 changes: 39 additions & 0 deletions .github/workflows/docker-build-and-push-rolling.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: docker-build-and-push-rolling

on:
push:
tags:
- v*
- "[0-9]+.[0-9]+*"
schedule:
- cron: 0 0 1,15 * *
workflow_dispatch:

jobs:
docker-build-and-push-rolling:
runs-on: ubuntu-latest
steps:
- name: Trigger workflow
uses: actions/github-script@v6
with:
script: |
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'docker-build-and-push-main.yaml',
ref: 'rolling',
})
docker-build-and-push-rolling-self-hosted:
runs-on: [self-hosted, linux, ARM64]
steps:
- name: Trigger workflow
uses: actions/github-script@v6
with:
script: |
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'docker-build-and-push-main-self-hosted.yaml',
ref: 'rolling',
})

0 comments on commit 75f04c8

Please sign in to comment.