Skip to content

Commit 0d03e8f

Browse files
committed
update workflows
1 parent 154ff08 commit 0d03e8f

File tree

3 files changed

+22
-12
lines changed

3 files changed

+22
-12
lines changed

.github/workflows/build_images.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Store Docker Images on /mnt/docker
3434
run: |
3535
sudo ./config_docker.py
36-
- name: Show Docker Images
36+
- name: Show Docker Images Before Building
3737
run: |
3838
docker images
3939
- name: Build Docker Images
@@ -42,7 +42,7 @@ jobs:
4242
--branch '${{ github.event.inputs.branch }}' \
4343
--repo '${{ github.event.inputs.repo }}' \
4444
--root-image-name '${{ github.event.inputs.root_image_name }}'
45-
- name: Show Building Graph
45+
- name: Show Building Graph After Building
4646
run: |
4747
cat graph.yaml
4848
- name: Show Docker Images

.github/workflows/build_images_regular.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,39 @@ on:
44
- cron: '0 9 13 * *'
55
jobs:
66
build_docker_images_regularly:
7-
runs-on: [self-hosted]
7+
runs-on: ubuntu-latest
88
permissions:
99
issues: write
1010
pull-requests: write
1111
contents: write
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v5
1414
with:
1515
ref: refs/heads/main
16-
- name: Free Disk Space
17-
run: |
18-
./free_disk_space.sh
1916
- name: Login to DockerHub
2017
uses: docker/login-action@v3
2118
with:
2219
username: ${{ secrets.DOCKERHUB_USERNAME }}
2320
password: ${{ secrets.DOCKERHUB_TOKEN }}
24-
- name: Build Docker Images Regularly
21+
- name: Install uv
22+
run: |
23+
curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR="/usr/local/bin" sh
24+
which uv
25+
- name: Store Docker Images on /mnt/docker
26+
run: |
27+
sudo ./config_docker.py
28+
- name: Show Docker Images Before Building
29+
run: |
30+
docker images
31+
- name: Build Docker Images
32+
run: |
33+
./build_images.py --branch "" --repo "" --root-image-name ""
34+
- name: Show Building Graph
2535
run: |
26-
df -lh
27-
./build_images.py --branch "" --repo "" --root-image-name "" --remove-images
2836
cat graph.yaml
29-
df -lh
37+
- name: Show Docker Images After Building
38+
run: |
39+
docker images
3040
- name: Set Environment Variable
3141
run: echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
3242
- uses: "marvinpinto/action-automatic-releases@latest"

.github/workflows/create_pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
create_pull_request:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v5
1111
with:
1212
ref: main
1313
- name: Reset main branch with dev changes

0 commit comments

Comments
 (0)