-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplanner-rockcraft.yaml
More file actions
42 lines (38 loc) · 1.56 KB
/
planner-rockcraft.yaml
File metadata and controls
42 lines (38 loc) · 1.56 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
# See https://documentation.ubuntu.com/rockcraft/latest/reference/extensions/go-framework
# For questions or help, visit https://matrix.to/#/#12-factor-charms:ubuntu.com
name: planner
# see https://documentation.ubuntu.com/rockcraft/latest/explanation/bases/
# for more information about bases and using 'bare' bases for chiselled rocks
base: bare # as an alternative, a ubuntu base can be used
build-base: ubuntu@24.04 # build-base is required when the base is bare
version: "0.1" # just for humans. Semantic versioning is recommended
summary: Planner API service # 79 char long summary
description: |
This application provides a HTTP REST API for GitHub runner
charm and operations management.
# the platforms this rock should be built on and run on.
# you can check your architecture with `dpkg --print-architecture`
platforms:
amd64:
# arm64:
# ppc64el:
# s390x:
# to ensure the go-framework extension functions properly, your Go project
# should have a go.mod file. Check the parts section for the selection of
# the default binary.
# see https://documentation.ubuntu.com/rockcraft/latest/reference/extensions/go-framework
# for more information.
# +-- planner
# | |-- go.mod
# | |-- migrate.sh
extensions:
- go-framework
# Configure the go-framework extension to build from cmd/planner
parts:
go-framework/install-app:
override-build: |
# Build the planner binary from cmd/planner
cd "$CRAFT_PART_SRC"
go build -o bin/planner ./cmd/planner
mkdir -p "$CRAFT_PART_INSTALL/usr/local/bin"
cp bin/planner "$CRAFT_PART_INSTALL/usr/local/bin/"