413957e36c
* First pass at reading dependencies from file * Write to a file first * Add manifest fetch * Check manifest download * See if job outputs support fromJSON * Try again * Try download from manifest * Use explicit skip steps * Use explicit image output name for curl * See if complex matrix values work * Re-enable tests in PR workflow * Use deps file in tests * Debug outputs * Use toJSON * Extract matrix outputs properly * Reinstate tests * Remove debug statements * [skip ci] don't run CI on edited PRs * [skip ci] Remove edited trigger from PR workflow
38 lines
963 B
YAML
38 lines
963 B
YAML
name: Ensure OpenStack image
|
|
|
|
description: >-
|
|
Ensures that the specified image exists in the target OpenStack cloud.
|
|
|
|
inputs:
|
|
os-client-config-file:
|
|
description: The path of the OpenStack clouds file
|
|
required: true
|
|
default: ./clouds.yml
|
|
os-cloud:
|
|
description: The name of the cloud within the OpenStack clouds file
|
|
required: true
|
|
default: openstack
|
|
image-name:
|
|
description: The name of the image to use
|
|
required: true
|
|
image-url:
|
|
description: The URL of the image
|
|
required: true
|
|
|
|
outputs:
|
|
image-id:
|
|
description: The ID of the image
|
|
value: ${{ steps.ensure-image.outputs.image-id }}
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- id: ensure-image
|
|
run: ./scripts/ensure-image.sh
|
|
shell: bash
|
|
env:
|
|
OS_CLIENT_CONFIG_FILE: ${{ inputs.os-client-config-file }}
|
|
OS_CLOUD: ${{ inputs.os-cloud }}
|
|
IMAGE_NAME: ${{ inputs.image-name }}
|
|
IMAGE_URL: ${{ inputs.image-url }}
|