Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .github/workflows/build_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,14 @@ on:
default: ''
jobs:
build_docker_images:
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- uses: actions/checkout@v3
with:
ref: refs/heads/main
- name: Free Disk Space
run: |
./free_disk_space.sh
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dockeree
run: |
pip3 install dockeree
- name: Login to DockerHub
uses: docker/login-action@v3
with:
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/build_images_regular.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
- cron: '0 9 13 * *'
jobs:
build_docker_images_regularly:
runs-on: ubuntu-latest
runs-on: [self-hosted]
permissions:
issues: write
pull-requests: write
Expand All @@ -16,13 +16,6 @@ jobs:
- name: Free Disk Space
run: |
./free_disk_space.sh
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dockeree
run: |
pip3 install dockeree
- name: Login to DockerHub
uses: docker/login-action@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
.jukit/
graph.yaml
11 changes: 9 additions & 2 deletions build_images.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/env python3
#!/usr/bin/env -S uv run
# /// script
# requires-python = "==3.13"
# dependencies = [
# "dockeree",
# ]
# ///
"""Python script for building Docker images via GitHub Actions.
"""
from argparse import ArgumentParser, Namespace
Expand All @@ -11,7 +17,7 @@
"https://github.com/legendu-net/docker-rust-cicd": "",
"https://github.com/legendu-net/docker-python-portable": "",
"https://github.com/legendu-net/docker-vscode-server": "",
"https://github.com/legendu-net/docker-gitpod": "",
# "https://github.com/legendu-net/docker-gitpod": "",
"https://github.com/legendu-net/docker-jupyterhub-pytorch": "",
"https://github.com/legendu-net/docker-tensorboard": "",
# "https://github.com/legendu-net/docker-conda-build": "",
Expand Down Expand Up @@ -73,3 +79,4 @@ def main() -> None:

if __name__ == "__main__":
main()

Loading