-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 984 Bytes
/
build.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
name: Test Building Docker Image and Workspace
on:
workflow_call:
inputs:
platform:
required: true
type: string
secrets:
dockerhub-token:
required: true
jobs:
reusable_workflow_job:
runs-on: ubuntu-22.04
steps:
- name: Maximize build space
run: |
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
sudo rm -rf /opt/ghc
echo "Available storage:"
df -h
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- name: Install vcs
run: pip3 install vcstool
- name: Prepare thirdparty repos
run: ./setup-dependency.sh
- name: Buildx bake
shell: bash
run: |
docker login -u daisukesato80 -p "${{ secrets.dockerhub-token }}"
./bake-docker.sh -P ${{ inputs.platform }}