Skip to content

Upgrade Linux Kernel for flatcar-4790 from 6.12.103 to 6.12.105 #5809

Upgrade Linux Kernel for flatcar-4790 from 6.12.103 to 6.12.105

Upgrade Linux Kernel for flatcar-4790 from 6.12.103 to 6.12.105 #5809

Workflow file for this run

name: "Run PR workflows"
on:
pull_request:
permissions:
pull-requests: write
concurrency:
group: ${{ github.workflow }}-pr-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
approval_gate:
name: "Wait for approval"
runs-on: ubuntu-latest
# Use this job as a gate, so we can approve the PR workflow only once. If
# we set this in the update_sdk job and in the build_image job, we would have
# to approve the workflow for every job that kicks off. Given that the jobs
# are sequenced, this is cumbersome. Use this job as a gate and make the rest
# dependent on it.
#
# Skip the environment gate for auto-ci PRs from the bot to allow
# automatic triggering without manual approval.
environment: ${{ (github.actor != 'flatcar-infra' || !contains(github.event.pull_request.labels.*.name, 'auto-ci')) && 'development' || null }}
steps:
- run: 'true'
update_sdk:
name: "Build an updated SDK container"
needs: [ approval_gate ]
if: "!contains(github.event.pull_request.labels.*.name, 'jenkins-ci') && contains(github.event.pull_request.body, '/update-sdk')"
# SDK build needs access to bincache ssh secret
secrets: inherit
uses: ./.github/workflows/update-sdk.yaml
build_image:
needs: [ approval_gate, update_sdk ]
# The update-sdk job may be skipped, which is fine. We only care if it tried to
# run, but failed.
if: "!contains(github.event.pull_request.labels.*.name, 'jenkins-ci') && always() && !cancelled() && needs.approval_gate.result == 'success' && needs.update_sdk.result != 'failure'"
name: "Build the OS image"
uses: ./.github/workflows/ci.yaml
with:
custom_sdk_version: ${{ needs.update_sdk.outputs.sdk_version }}
image_formats: qemu_uefi pxe
jenkins_ci:
name: "Trigger Jenkins CI"
needs: [ approval_gate ]
if: contains(github.event.pull_request.labels.*.name, 'jenkins-ci')
runs-on: ubuntu-latest
steps:
- name: Trigger Jenkins build
run: |
curl -fsSL \
https://jenkins.flatcar.org/buildByToken/buildWithParameters \
--data-urlencode "token=${{ secrets.JENKINS_REMOTE_TRIGGER_TOKEN }}" \
--data-urlencode "job=container/packages_all_arches" \
--data-urlencode "cause=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
--data-urlencode "version=main-9999.0.${{ github.run_number }}-github-${{ github.event.pull_request.number }}" \
--data-urlencode "scripts_ref=${{ github.event.pull_request.head.sha }}" \
--data-urlencode "git_sha=${{ github.event.pull_request.head.sha }}"