1- name : Product Images
1+ name : Production
22on :
33 schedule :
44 # Weekly rebuild of all images, to pick up any upstream changes.
55 - cron : " 15 3 * * 0" # At 03:15 on Sunday
6- # Hourly rebuild of dev images
7- - cron : " 45 4 * * *" # At 04:45 every day
86
97 pull_request :
108
@@ -31,22 +29,11 @@ jobs:
3129 timeout-minutes : 10
3230 needs :
3331 - build
34- - dev
3532
3633 steps :
3734 - uses : re-actors/alls-green@release/v1
3835 with :
3936 jobs : ${{ toJSON(needs) }}
40- allowed-skips : ${{
41- (
42- github.event_name == 'schedule' &&
43- (
44- github.event.schedule != '15 3 * * 0' && '["build"]'
45- ||
46- github.event.schedule != '45 4 * * 0' && '["dev"]'
47- )
48- ) || '[]'
49- }}
5037
5138 build :
5239 name : Build
5542 # Builds all versions of each image in parallel.
5643 #
5744 # Run on merges to main, or on weekly scheduled re-builds.
58- if : contains(fromJSON('["push", "pull_request"]'), github.event_name) || github.event.schedule == '15 3 * * 0'
5945 permissions :
6046 contents : read
6147 packages : write
6854 dev-versions : " exclude"
6955 matrix-versions : " exclude"
7056 # Push images only for merges into main and weekly schduled re-builds.
71- push : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' || github.event.schedule == '15 3 * * 0' }}
72-
73- dev :
74- name : Dev Build
75- # Dev Build
76- #
77- # Builds all development versions of each image in parallel.
78- #
79- # Run on merges to main, or on hourly scheduled re-builds.
80- if : contains(fromJSON('["push", "pull_request"]'), github.event_name) || github.event.schedule == '45 4 * * *'
81-
82- permissions :
83- contents : read
84- packages : write
85- id-token : write # Required for AWS OIDC login
86-
87- uses : " posit-dev/images-shared/.github/workflows/bakery-build.yml@main"
88- secrets :
89- AWS_ROLE : ${{ secrets.AWS_ROLE }}
90- with :
91- runs-on : ubuntu-latest-4x
92- dev-versions : " only"
93- matrix-versions : " exclude"
94- aws-region : us-west-2
95- # Push images only for merges into main and hourly schduled re-builds.
96- push : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' || github.event.schedule == '45 4 * * *' }}
57+ push : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' || github.event_name == 'schedule' }}
9758
9859 clean :
9960 name : Clean
@@ -103,13 +64,9 @@ jobs:
10364 packages : write
10465 needs :
10566 - build
106- - dev
10767
10868 uses : " posit-dev/images-shared/.github/workflows/clean.yml@main"
10969 with :
11070 remove-dangling-caches : true
11171 remove-caches-older-than : 14
112- # FIXME: re-enable temporary image cleanup after moving to native platform workflow
113- # remove-dangling-temporary-images: false
114- # remove-temporary-images-older-than: 3
115- clean-temporary-images : false
72+ clean-temporary-images : false
0 commit comments