Skip to content

Commit 2c3f187

Browse files
authored
feat(ci): enable weekly rebuild for all images (#520)
* feat(ci): enable weekly rebuild for all images * ci: automatically update oci/mock-rock/_releases.json, from https://github.com/canonical/oci-factory/actions/runs/16344247784 --------- Co-authored-by: zhijie-yang <24251674+zhijie-yang@users.noreply.github.com>
1 parent e87e1cd commit 2c3f187

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/Rebuild-Images.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Rebuild images
33
on:
44
schedule:
5-
- cron: "0 2 * * *"
5+
- cron: "0 2 * * 0"
66
workflow_dispatch:
77
inputs:
88
image-name:
@@ -38,8 +38,7 @@ jobs:
3838
OS_PROJECT_NAME: ${{ secrets.SWIFT_OS_TENANT_NAME }}
3939
OS_STORAGE_URL: ${{ secrets.SWIFT_OS_STORAGE_URL }}
4040
GITHUB_TOKEN: ${{ secrets.ROCKSBOT_TOKEN }}
41-
# TODO change the 'mock-rock' to the '*'
4241
run: |
43-
poetry run python3 find_images_to_update.py --image-name ${{ inputs.image-name || 'mock-rock' }} \
44-
--ext-ref-prefix daily-rebuild
42+
poetry run python3 find_images_to_update.py --image-name ${{ inputs.image-name || '*' }} \
43+
--ext-ref-prefix weekly-rebuild
4544

oci/mock-rock/_releases.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,31 +35,31 @@
3535
"1.1-22.04": {
3636
"end-of-life": "2030-05-01T00:00:00Z",
3737
"candidate": {
38-
"target": "1750"
38+
"target": "1773"
3939
},
4040
"beta": {
41-
"target": "1750"
41+
"target": "1773"
4242
},
4343
"edge": {
44-
"target": "1750"
44+
"target": "1773"
4545
}
4646
},
4747
"1-22.04": {
4848
"end-of-life": "2030-05-01T00:00:00Z",
4949
"candidate": {
50-
"target": "1750"
50+
"target": "1773"
5151
},
5252
"beta": {
53-
"target": "1750"
53+
"target": "1773"
5454
},
5555
"edge": {
56-
"target": "1750"
56+
"target": "1773"
5757
}
5858
},
5959
"1.2-22.04": {
6060
"end-of-life": "2030-05-01T00:00:00Z",
6161
"beta": {
62-
"target": "1751"
62+
"target": "1774"
6363
},
6464
"edge": {
6565
"target": "1.2-22.04_beta"

0 commit comments

Comments
 (0)