This repository was archived by the owner on Apr 5, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (50 loc) · 1.52 KB
/
build_images.yml
File metadata and controls
50 lines (50 loc) · 1.52 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
43
44
45
46
47
48
49
50
name: Build Docker Images
on:
workflow_dispatch:
inputs:
branch:
description: 'The GitHub branch of repositories to build.'
required: false
default: dev
repo:
description: 'The leaf repository to build.'
required: false
default: ''
root_image_name:
description: 'The name of the root Docker image in dependency resolving.'
required: false
default: ''
jobs:
build_docker_images:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
ref: refs/heads/main
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR="/usr/local/bin" sh
which uv
- name: Store Docker Images on /mnt/docker
run: |
sudo ./config_docker.py
- name: Show Docker Images Before Building
run: |
docker images
- name: Build Docker Images
run: |
./build_images.py \
--branch '${{ github.event.inputs.branch }}' \
--repo '${{ github.event.inputs.repo }}' \
--root-image-name '${{ github.event.inputs.root_image_name }}'
- name: Show Building Graph After Building
run: |
cat graph.yaml
- name: Show Docker Images
run: |
docker images