generated from canonical/is-charms-template-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rockcraft.yaml
36 lines (32 loc) · 1.42 KB
/
rockcraft.yaml
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
# Copyright 2024 Canonical Ltd.
# See LICENSE file for licensing details.
name: github-runner-webhook-router
base: ubuntu@22.04
version: '0.1'
summary: Forwards webhooks to a message queue to be consumed to spawn runners. # 79 char long summary
description: |
The github-runner-webhook-router is a simple Flask application that listens for incoming webhooks
from GitHub and places a translation of those in a message queue for a runner to pick up and process.
It is intended to be used together with the Github Runner operator in reactive mode.
license: Apache-2.0
platforms:
amd64:
# To ensure the flask-framework extension works properly, your Flask application
# should have an `app.py` file with an `app` object as the WSGI entrypoint.
extensions:
- flask-framework
parts:
flask-framework/dependencies:
# Exclude pyproject.yaml so that the python plugin doesn't handle this project as a package
override-build: |
rm -f pyproject.toml
craftctl default
flask-framework/install-app:
prime:
# By default, only the files in app/, templates/, static/, and app.py
# are copied into the image. You can modify the list below to override
# the default list and include or exclude specific files/directories
# in your project.
# Note: Prefix each entry with "flask/app/" followed by the local path.
- flask/app/app.py
- flask/app/webhook_router