forked from elyra-ai/elyra
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build a notebook-based image with the current Elyra code
- Loading branch information
Showing
3 changed files
with
118 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: 'Purge old ghcr.io test images periodically' | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
dry_run: | ||
type: boolean | ||
default: true | ||
description: 'Do a dry run?' | ||
schedule: | ||
- cron: '0 5 * * *' # at 05:00 UTC every day | ||
|
||
permissions: | ||
packages: write | ||
|
||
jobs: | ||
clean: | ||
runs-on: ubuntu-latest | ||
name: Delete old test images | ||
steps: | ||
- uses: snok/container-retention-policy@4f22ef80902ad409ed55a99dc5133cc1250a0d03 # v3.0.0 | ||
with: | ||
account: ${{ (github.repository_owner == github.actor) && 'user' || github.repository_owner }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
image-names: | | ||
${{ github.event.repository.name }}/workbench-images | ||
image-tags: '*' | ||
cut-off: '3w' | ||
dry-run: ${{ inputs.dry_run || false }} | ||
env: | ||
RUST_BACKTRACE: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
df -h | ||
|
||
sudo apt-get update | ||
sudo apt-get remove -y '^dotnet-.*' | ||
sudo apt-get remove -y '^llvm-.*' | ||
sudo apt-get remove -y 'php.*' | ||
sudo apt-get remove -y '^mongodb-.*' | ||
sudo apt-get autoremove -y | ||
sudo apt-get clean | ||
sudo rm -rf /usr/local/.ghcup & | ||
sudo rm -rf /usr/local/lib/android & | ||
sudo rm -rf /usr/local/share/boost & | ||
sudo rm -rf /usr/share/dotnet & | ||
sudo rm -rf /opt/ghc & | ||
sudo rm -rf /opt/hostedtoolcache/CodeQL & | ||
|
||
sudo docker image prune --all --force & | ||
|
||
wait | ||
|
||
df -h |