-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (48 loc) · 1.41 KB
/
build.yml
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
on:
push:
branches:
- 'master'
workflow_dispatch: # Allow manual triggering
jobs:
bake:
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true # we want to re-download freshest layers anyway
swap-storage: true
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Create bakefiles
run: |
export DHUBREPO=advian
./create_builds.py pyenv > pyenv.hcl
./create_builds.py tox-base > tox-base.hcl
- name: Bake pyenv
run: |
docker buildx bake --pull --push --file ./pyenv.hcl
- name: Bake tox
run: |
docker buildx bake --pull --push --file ./tox-base.hcl