diff --git a/.github/workflows/build_images.yml b/.github/workflows/build_images.yml index 47f4f33..ec1feed 100644 --- a/.github/workflows/build_images.yml +++ b/.github/workflows/build_images.yml @@ -16,7 +16,7 @@ on: default: '' jobs: build_docker_images: - runs-on: ubuntu-latest + runs-on: [self-hosted] steps: - uses: actions/checkout@v3 with: @@ -24,13 +24,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: diff --git a/.github/workflows/build_images_regular.yml b/.github/workflows/build_images_regular.yml index 7d71cd2..250038f 100644 --- a/.github/workflows/build_images_regular.yml +++ b/.github/workflows/build_images_regular.yml @@ -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 @@ -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: diff --git a/.gitignore b/.gitignore index f66eac7..b0aa5e5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .DS_Store +.jukit/ graph.yaml diff --git a/build_images.py b/build_images.py index beba63c..c728255 100755 --- a/build_images.py +++ b/build_images.py @@ -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 @@ -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": "", @@ -73,3 +79,4 @@ def main() -> None: if __name__ == "__main__": main() +