Skip to content

WIP: CI action for generating artifacts for an airgapped release #15

WIP: CI action for generating artifacts for an airgapped release

WIP: CI action for generating artifacts for an airgapped release #15

name: Create Airgapped Artifacts
on:
workflow_dispatch:
inputs:
bundle:
description: 'Path to bundle file in the repo'
required: true
type: string
default: releases/1.7/stable/kubeflow/bundle.yaml
pull_request:
env:
bundle: releases/1.7/stable/kubeflow/bundle.yaml
jobs:
self-hosted:
name: Create images
# runs-on: [self-hosted, linux, X64, jammy, two-xlarge]
runs-on: [self-hosted, linux, X64, jammy, large]
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install prerequisites
run: |
./scripts/airgapped/prerequisites.sh
# pip3 install -r scripts/airgapped/requirements.txt
# sudo apt install pigz
# sudo snap install docker
# sudo snap install yq
# sudo snap install jq
- name: Create images.txt
run: |
./scripts/airgapped/get-all-images.sh ${{ env.bundle }} > images.txt
echo -e "/nCreated images list:"
cat ./images.txt
- name: Create charms.tar.gz
run: |
python3 scripts/airgapped/save-charms-to-tar.py ${{ env.bundle }}
- name: Upload images.txt
uses: actions/upload-artifact@v3
with:
name: images-list
path: images.txt