mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
53 lines
1.4 KiB
YAML
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-22.04-xlarge
|
|
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 }}"
|