-
Notifications
You must be signed in to change notification settings - Fork 31
58 lines (50 loc) · 1.7 KB
/
build-controller.yml
File metadata and controls
58 lines (50 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Build the controller
on:
push:
branches:
- 'main'
- 'software/beta'
- 'software/stable'
tags:
- 'controller/v*'
paths:
- 'controller/**'
- '.github/workflows/build-controller.yml'
pull_request:
paths:
- 'controller/**'
- '.github/workflows/build-controller.yml'
merge_group:
workflow_dispatch:
inputs:
git-ref:
description: 'Git ref (optional)'
required: false
env:
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
IMAGE_NAME: 'controller'
MAIN_BRANCH: 'main' # pushing to this branch will update the "edge" tag on the image
BETA_BRANCH: 'software/beta' # pushing to this branch will update the "beta" tag on the image
STABLE_BRANCH: 'software/stable' # pushing to this branch will update the "stable" tag on the image
TAG_PREFIX: 'controller/v' # pushing tags with this prefix will add a version tag to the image and update the "latest" tag on the image
PUSH_IMAGE: ${{ (github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork) || github.event_name == 'push' || github.event_name == 'push tag' }}
jobs:
ci-checks:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Set up Python
run: uv python install
- name: Install build dependencies
run: sudo apt-get update && sudo apt-get install -y libcap-dev
- name: Install dependencies
working-directory: ./controller
run: |
uv sync --locked --dev
- name: Run checks
working-directory: ./controller
run: uv run poe check