Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow overriding the meta-balena ref for workflow dispatch #538

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/generic-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,21 @@ on:
required: false
type: string
default: balena-staging.com
meta-balena-ref:
description: meta-balena ref if not the currently pinned version
required: false
type: string
default: ''
yocto-scripts-ref:
description: yocto-scripts ref if not the currently pinned version
required: false
type: string
default: ''

jobs:
yocto:
name: Yocto
uses: balena-os/balena-yocto-scripts/.github/workflows/yocto-build-deploy.yml@v1.26.0
uses: balena-os/balena-yocto-scripts/.github/workflows/yocto-build-deploy.yml@kyle/qemu-debug
# Prevent duplicate workflow executions for pull_request (PR) and pull_request_target (PRT) events.
# Both PR and PRT will be triggered for the same pull request, whether it is internal or from a fork.
# This condition will prevent the workflow from running twice for the same pull request while
Expand All @@ -47,6 +57,10 @@ jobs:
force-finalize: ${{ inputs.force-finalize || false }}
# Default to balena-staging.com for workflow dispatch, but balena-cloud.com for other events
deploy-environment: ${{ inputs.deploy-environment || 'balena-cloud.com' }}
# Allow overriding the meta-balena ref for workflow dispatch events
meta-balena-ref: ${{ inputs.meta-balena-ref || '' }}
# Allow overriding the yocto-scripts ref for workflow dispatch events
yocto-scripts-ref: ${{ inputs.yocto-scripts-ref || '' }}
# Use QEMU workers for testing and run cloud suite against balenaCloud production
test_matrix: >
{
Expand Down
18 changes: 16 additions & 2 deletions .github/workflows/generic-amd64-fs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,22 @@ on:
description: Environment to use for build and deploy
required: false
type: string
default: balena-staging.com
default: balena-staging.com+generic-amd64-fs-signing-key
meta-balena-ref:
description: meta-balena ref if not the currently pinned version
required: false
type: string
default: ''
yocto-scripts-ref:
description: yocto-scripts ref if not the currently pinned version
required: false
type: string
default: ''

jobs:
yocto:
name: Yocto
uses: balena-os/balena-yocto-scripts/.github/workflows/yocto-build-deploy.yml@v1.26.0
uses: balena-os/balena-yocto-scripts/.github/workflows/yocto-build-deploy.yml@kyle/qemu-debug
# Prevent duplicate workflow executions for pull_request (PR) and pull_request_target (PRT) events.
# Both PR and PRT will be triggered for the same pull request, whether it is internal or from a fork.
# This condition will prevent the workflow from running twice for the same pull request while
Expand All @@ -47,6 +57,10 @@ jobs:
force-finalize: ${{ inputs.force-finalize || false }}
# Default to balena-staging.com for workflow dispatch, but balena-cloud.com for other events
deploy-environment: ${{ inputs.deploy-environment || 'balena-cloud.com+generic-amd64-fs-signing-key' }}
# Allow overriding the meta-balena ref for workflow dispatch events
meta-balena-ref: ${{ inputs.meta-balena-ref || '' }}
# Allow overriding the yocto-scripts ref for workflow dispatch events
yocto-scripts-ref: ${{ inputs.yocto-scripts-ref || '' }}
# Sign image for secure boot
sign-image: true
# FIXME: Disable finalize-on-push until we have a test to verify that SIGN_KMOD_KEY_APPEND is set
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/generic-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,22 @@ on:
description: Environment to use for build and deploy
required: false
type: string
default: balena-staging.com
default: balena-staging.com+sign-api-key
meta-balena-ref:
description: meta-balena ref if not the currently pinned version
required: false
type: string
default: ''
yocto-scripts-ref:
description: yocto-scripts ref if not the currently pinned version
required: false
type: string
default: ''

jobs:
yocto:
name: Yocto
uses: balena-os/balena-yocto-scripts/.github/workflows/yocto-build-deploy.yml@v1.26.0
uses: balena-os/balena-yocto-scripts/.github/workflows/yocto-build-deploy.yml@kyle/qemu-debug
# Prevent duplicate workflow executions for pull_request (PR) and pull_request_target (PRT) events.
# Both PR and PRT will be triggered for the same pull request, whether it is internal or from a fork.
# This condition will prevent the workflow from running twice for the same pull request while
Expand All @@ -47,6 +57,10 @@ jobs:
force-finalize: ${{ inputs.force-finalize || false }}
# Default to balena-staging.com for workflow dispatch, but balena-cloud.com for other events
deploy-environment: ${{ inputs.deploy-environment || 'balena-cloud.com+sign-api-key' }}
# Allow overriding the meta-balena ref for workflow dispatch events
meta-balena-ref: ${{ inputs.meta-balena-ref || '' }}
# Allow overriding the yocto-scripts ref for workflow dispatch events
yocto-scripts-ref: ${{ inputs.yocto-scripts-ref || '' }}
# Sign image for secure boot
sign-image: true
# Use QEMU workers for testing and run cloud suite against balenaCloud production
Expand All @@ -55,6 +69,6 @@ jobs:
"test_suite": ["os","cloud","hup"],
"environment": ["balena-cloud.com"],
"worker_type": ["qemu"],
"runs_on": [["self-hosted", "X64", "kvm"]],
"runs_on": [["self-hosted", "X64", "kvm", "yocto"]],
"secure_boot": ["sb",""]
}
16 changes: 15 additions & 1 deletion .github/workflows/kontron-come-xelx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,21 @@ on:
required: false
type: string
default: balena-staging.com
meta-balena-ref:
description: meta-balena ref if not the currently pinned version
required: false
type: string
default: ''
yocto-scripts-ref:
description: yocto-scripts ref if not the currently pinned version
required: false
type: string
default: ''

jobs:
yocto:
name: Yocto
uses: balena-os/balena-yocto-scripts/.github/workflows/yocto-build-deploy.yml@v1.26.0
uses: balena-os/balena-yocto-scripts/.github/workflows/yocto-build-deploy.yml@kyle/qemu-debug
# Prevent duplicate workflow executions for pull_request (PR) and pull_request_target (PRT) events.
# Both PR and PRT will be triggered for the same pull request, whether it is internal or from a fork.
# This condition will prevent the workflow from running twice for the same pull request while
Expand All @@ -47,3 +57,7 @@ jobs:
force-finalize: ${{ inputs.force-finalize || false }}
# Default to balena-staging.com for workflow dispatch, but balena-cloud.com for other events
deploy-environment: ${{ inputs.deploy-environment || 'balena-cloud.com' }}
# Allow overriding the meta-balena ref for workflow dispatch events
meta-balena-ref: ${{ inputs.meta-balena-ref || '' }}
# Allow overriding the yocto-scripts ref for workflow dispatch events
yocto-scripts-ref: ${{ inputs.yocto-scripts-ref || '' }}
18 changes: 16 additions & 2 deletions .github/workflows/studio-automatedx86-sb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,22 @@ on:
description: Environment to use for build and deploy
required: false
type: string
default: balena-staging.com
default: balena-staging.com+studio-automatedx86-sb-signing-key
meta-balena-ref:
description: meta-balena ref if not the currently pinned version
required: false
type: string
default: ''
yocto-scripts-ref:
description: yocto-scripts ref if not the currently pinned version
required: false
type: string
default: ''

jobs:
yocto:
name: Yocto
uses: balena-os/balena-yocto-scripts/.github/workflows/yocto-build-deploy.yml@v1.26.0
uses: balena-os/balena-yocto-scripts/.github/workflows/yocto-build-deploy.yml@kyle/qemu-debug
# Prevent duplicate workflow executions for pull_request (PR) and pull_request_target (PRT) events.
# Both PR and PRT will be triggered for the same pull request, whether it is internal or from a fork.
# This condition will prevent the workflow from running twice for the same pull request while
Expand All @@ -51,3 +61,7 @@ jobs:
sign-image: true
# FIXME: Disable finalize-on-push until we have a test to verify that SIGN_KMOD_KEY_APPEND is set
finalize-on-push-if-tests-passed: false
# Allow overriding the meta-balena ref for workflow dispatch events
meta-balena-ref: ${{ inputs.meta-balena-ref || '' }}
# Allow overriding the yocto-scripts ref for workflow dispatch events
yocto-scripts-ref: ${{ inputs.yocto-scripts-ref || '' }}
Loading