Skip to content

Commit

Permalink
Merge pull request #502 from perftool-incubator/dev-kmr
Browse files Browse the repository at this point in the history
Dev kmr
  • Loading branch information
k-rister authored Jun 11, 2024
2 parents b6bc0b3 + 15d1f1a commit 9e0e6ce
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/crucible-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
ci_target_branch: "${{ github.ref }}"
github_workspace: "$GITHUB_WORKSPACE"
secrets:
registry_auth: ${{ secrets.CRUCIBLE_CI_ENGINES_REGISTRY_AUTH }}
ci_registry_auth: ${{ secrets.CRUCIBLE_CI_ENGINES_REGISTRY_AUTH }}
26 changes: 26 additions & 0 deletions .github/workflows/crucible-merged.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: crucible-merged

on:
pull_request_target:
types: [ closed ]
branches: [ master ]
paths-ignore:
- LICENSE
- '**.md'
- .github/workflows/faux-unittest.yaml
- .github/workflows/faux-crucible-ci.yaml
- 'docs/**'
- engine/engine-script-library.py
- engine/engine-script.py
workflow_dispatch:

jobs:
call-core-crucible-ci_if-merged:
if: github.event.pull_request.merged == true
uses: perftool-incubator/crucible-ci/.github/workflows/core-crucible-ci.yaml@main
with:
ci_target: "rickshaw"
ci_target_branch: "master"
github_workspace: "$GITHUB_WORKSPACE"
secrets:
production_registry_auth: ${{ secrets.CRUCIBLE_PRODUCTION_ENGINES_REGISTRY_AUTH }}
10 changes: 9 additions & 1 deletion rickshaw-run
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ my $roadblock_exit_abort_waiting = 6;
my $abort_via_roadblock = 0;
my $workshop_base_cmd;
my $workshop_force_builds;
my $quay_image_expiration;
my $cs_conf_file;
my %cs_conf;

Expand Down Expand Up @@ -1723,6 +1724,13 @@ sub load_settings_info() {
print "load_settings_info(): failed to load workshop force\n";
exit 1;
}

($rc, $quay_image_expiration) = get_json_setting("quay.image-expiration", $jsonsettings);
if ($rc != 0) {
print "load_settings_info(): failed to load quay image-expiration\n";
exit 1;
}

printf "Finished loading json settings\n";
}

Expand Down Expand Up @@ -2835,7 +2843,7 @@ $cs_conf_file = $config_dir . "/cs-conf.json";
},
'config' => {
'entrypoint' => [ "/bin/sh", "-c", "/usr/local/bin/bootstrap" ],
'labels' => [ 'quay.expires-after=2w' ],
'labels' => [ 'quay.expires-after=' . $quay_image_expiration ],
'envs' => [ 'TOOLBOX_HOME=/opt/toolbox' ]
}
);
Expand Down
3 changes: 3 additions & 0 deletions rickshaw-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@
},
"workshop": {
"force-builds": "false"
},
"quay": {
"image-expiration": "2w"
}
}

0 comments on commit 9e0e6ce

Please sign in to comment.