-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (55 loc) · 1.67 KB
/
workflow.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Build CI
on:
pull_request:
branches: ["*"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: "3.11.6"
- uses: Gr1N/setup-poetry@v8
name: Install poetry
with:
poetry-version: 1.7.1
- name: Install python dependencies
run: poetry install
- name: Building
run: make build build-binary-linux
- name: Check types
run: make lint
- name: Check formatting
run: make format
# Buiding the container is basically the integ test
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Import SSH Config
run: |
mkdir ./ssh/
echo "${{ secrets.DOCKER_PRIVATE_SSH_KEY }}" > ./ssh/id_rsa
echo "${{ secrets.DOCKER_KNOWN_HOSTS }}" > ./ssh/known_hosts
- name: Build Docker container with booty wheel
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
load: true
push: false
tags: booty/test-wheel${{ github.sha }}
- name: Build Docker container with booty binary
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile.binary
load: true
push: false
tags: booty/test-binary${{ github.sha }}
# The build host is running out of disk space
- name: Delete docker images and cache
shell: bash
run: docker system prune -a -f