Skip to content

Commit d1fdceb

Browse files
authored
CI: Optimize standalone linters release perfs (#6656)
* [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes * Fixes * Deprecate terrascan Fixes #6596 * Adds free space config to docker mirror Adds "free-space-before": "false" to the inputs of the mirror-docker-image.yml workflow dispatch calls. This prevents the workflow from attempting to free disk space, addressing potential issues where this operation might fail or be unnecessary. This avoids failures caused by lack of permissions to run apt. --------- Co-authored-by: nvuillam <[email protected]>
1 parent 4232d8f commit d1fdceb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/deploy-BETA-linters.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ jobs:
156156
uses: benc-uk/workflow-dispatch@v1
157157
with:
158158
workflow: mirror-docker-image.yml
159-
inputs: '{ "source-image": "${{ fromJson(steps.meta.outputs.json).tags[0]}}", "target-image": "${{ fromJson(steps.meta-dhub.outputs.json).tags[0]}}" }'
159+
inputs: '{ "source-image": "${{ fromJson(steps.meta.outputs.json).tags[0]}}", "target-image": "${{ fromJson(steps.meta-dhub.outputs.json).tags[0]}}", "free-space-before": "false" }'
160160

161161
##############################################
162162
# Check Docker image security with Trivy #

.github/workflows/deploy-RELEASE-linters.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,21 +106,21 @@ jobs:
106106
with:
107107
workflow: mirror-docker-image.yml
108108
# MAJOR-RELEASE-IMPACTED
109-
inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter-only-${{ matrix.linter }}:v9", "target-image": "docker.io/oxsecurity/megalinter-only-${{ matrix.linter }}:v9" }'
109+
inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter-only-${{ matrix.linter }}:v9", "target-image": "docker.io/oxsecurity/megalinter-only-${{ matrix.linter }}:v9", "free-space-before": "false" }'
110110
ref: main
111111
- name: Invoke Mirror docker image workflow (Standalone image)
112112
uses: benc-uk/workflow-dispatch@v1
113113
with:
114114
workflow: mirror-docker-image.yml
115115
# MAJOR-RELEASE-IMPACTED
116-
inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter-only-${{ matrix.linter }}:v9", "target-image": "docker.io/oxsecurity/megalinter-only-${{ matrix.linter }}:${{ github.event.release.tag_name }}" }'
116+
inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter-only-${{ matrix.linter }}:v9", "target-image": "docker.io/oxsecurity/megalinter-only-${{ matrix.linter }}:${{ github.event.release.tag_name }}", "free-space-before": "false" }'
117117
ref: main
118118
- name: Invoke Mirror docker image workflow (Standalone image)
119119
uses: benc-uk/workflow-dispatch@v1
120120
with:
121121
workflow: mirror-docker-image.yml
122122
# MAJOR-RELEASE-IMPACTED
123-
inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter-only-${{ matrix.linter }}:v9", "target-image": "docker.io/oxsecurity/megalinter-only-${{ matrix.linter }}:latest" }'
123+
inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter-only-${{ matrix.linter }}:v9", "target-image": "docker.io/oxsecurity/megalinter-only-${{ matrix.linter }}:latest", "free-space-before": "false" }'
124124
ref: main
125125
#####################################
126126
# Run Linter test cases #

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
3535
- Flavors
3636

3737
- CI
38+
- Optimize performances of standalone linters releases
3839

3940
- mega-linter-runner
4041
- Handle upgrade of stefanzweifel/git-auto-commit-action to v7

0 commit comments

Comments
 (0)