Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sorah committed Jan 14, 2025
1 parent 0c242e5 commit 881990d
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/build.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,32 @@ local build_jobs = [
for pattern in build_job_patterns
];

local jobs = build_jobs + [
local manifest_jobs = [
manifest_subtag_job(pattern)
for pattern in manifest_subtag_job_patterns
] + [
];

local cleanup_job = {
cleanup: {
name: 'cleanup',
'runs-on': 'ubuntu-latest',
permissions: { 'id-token': 'write', contents: 'read' },
needs: std.flattenArrays([[y.name for y in std.objectValues(x)] for x in manifest_jobs]),
steps: common_steps + [
{
run: 'curl -Ssfo cleanup.rb https://raw.githubusercontent.com/sorah/config/1a4323466aa3c554dd53b70a17fe36fb4c8c87fd/bin/sorah-aws-ecr-public-cleanup',
},
{
run: 'ruby cleanup.rb ruby',
},
],
},
};


local jobs = build_jobs + manifest_jobs + [
manifest_job('manifest-latest', 'latest', {}, [pattern_to_job_name('build', pattern) for pattern in build_job_patterns if pattern.series == matrix[std.length(matrix) - 1].series]),
cleanup_job,
];

{
Expand Down
72 changes: 72 additions & 0 deletions .github/workflows/build.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 881990d

Please sign in to comment.