Files
firezone/.github/workflows/cd.yml
Thomas Eizinger eeadde0c86 ci: bump Ubuntu runners to 24.04 (#10288)
Ubuntu 22.04 is over 3 years old and therefore ships with quite an old
kernel. Our production VMs (for relays) all run Ubuntu 24.04 so it makes
sense to build and test them on the same kernel / OS release. For
consistency reasons, we therefore bump all runners to 24.04.
2025-09-04 02:04:55 +00:00

53 lines
1.4 KiB
YAML

name: Continuous Delivery
on:
# Used for debugging the workflow by manually calling it
workflow_dispatch:
push:
branches:
- main
jobs:
# Builds images that match what's default in docker-compose.yml for
# local development.
build-dev-images:
uses: ./.github/workflows/_build_artifacts.yml
secrets: inherit
with:
image_prefix: "dev"
stage: "debug"
profile: "debug"
# Builds debug images with release binaries for compatibility tests in case the merge_group was skipped.
build-test-images:
uses: ./.github/workflows/_build_artifacts.yml
secrets: inherit
with:
image_prefix: "debug"
stage: "debug"
profile: "release"
# Re-run CI checks to make sure everything's green, since "Merging as administrator"
# won't trigger these in the merge group.
ci:
uses: ./.github/workflows/ci.yml
secrets: inherit
with:
profile: "release"
stage: "release"
notify:
needs: ci
runs-on: ubuntu-24.04
steps:
- name: Send 'checks-passed' event
env:
GH_TOKEN: ${{ secrets.INFRA_REPOSITORY_TOKEN }}
run: |
gh api \
--method POST \
--header "Accept: application/vnd.github+json" \
--header "X-GitHub-Api-Version: 2022-11-28" \
/repos/firezone/infra/dispatches \
--raw-field "event_type=checks-passed" \
--field "client_payload[sha]=${{ github.sha }}"