forked from rancher/elemental-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor CI to use a local registry * Cache image and fetch image tarballs * Composite fetch images * Push to insecure registry with podman * Simplify workflow runs * Improve cache cleanup * Improve ip detection Signed-off-by: David Cassany <dcassany@suse.com> (cherry picked from commit 644cdc7)
- Loading branch information
1 parent
724223e
commit 423c069
Showing
11 changed files
with
341 additions
and
121 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Pull images | ||
descriptions: Fetches and loads images from the cache | ||
|
||
inputs: | ||
version: | ||
description: key of the cache and tag of the images | ||
required: true | ||
type: string | ||
flavor: | ||
description: flavor of the OS image | ||
required: false | ||
type: string | ||
toolkit: | ||
description: fetch toolkit image | ||
required: false | ||
default: 'true' | ||
type: 'boolean' | ||
os: | ||
description: fetch OS image | ||
required: false | ||
default: 'true' | ||
type: 'boolean' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- if: ${{ inputs.toolkit == 'true' }} | ||
name: Fetch toolkit image | ||
id: cache-toolkit | ||
uses: actions/cache/restore@v4 | ||
env: | ||
cache-name: pr-toolkit-build-x86_64 | ||
with: | ||
path: /tmp/toolkit.tar | ||
key: ${{ env.cache-name }}-${{ inputs.version }} | ||
fail-on-cache-miss: true | ||
- if: ${{ inputs.toolkit == 'true' }} | ||
name: Load toolkit image | ||
id: load-toolkit | ||
shell: bash | ||
run: | | ||
docker load -i /tmp/toolkit.tar | ||
- if: ${{ inputs.os == 'true' }} | ||
name: Fetch OS image | ||
id: cache-os | ||
uses: actions/cache/restore@v4 | ||
env: | ||
cache-name: pr-os-build-x86_64-${{ inputs.flavor }} | ||
with: | ||
path: /tmp/os.tar | ||
key: ${{ env.cache-name }}-${{ inputs.version }} | ||
fail-on-cache-miss: true | ||
- if: ${{ inputs.os == 'true' }} | ||
name: Load OS image | ||
id: load-os | ||
shell: bash | ||
run: | | ||
docker load -i /tmp/os.tar |
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
Oops, something went wrong.