Build and Publish Rocks workflows #1
Workflow file for this run
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
name: Build Rocks | ||
on: | ||
workflow_call: | ||
inputs: | ||
image-build-args: | ||
description: | | ||
List of build args to pass to the build image job | ||
type: string | ||
default: "" | ||
registry: | ||
description: Container Registrying top-level domain | ||
type: string | ||
default: ghcr.io | ||
trivy-image-config: | ||
type: string | ||
description: Trivy YAML configuration for image testing that is checked in as part of the repo | ||
working-directory: | ||
type: string | ||
description: The working directory for jobs | ||
default: "./" | ||
env: | ||
REGISTRY: ${{ inputs.registry }} | ||
OWNER: ${{ github.repository_owner }} | ||
jobs: | ||
get-runner-image: | ||
name: Get runner image | ||
uses: canonical/operator-workflows/.github/workflows/get_runner_image.yaml | ||
with: | ||
working-directory: ${{ inputs.working-directory }} | ||
build-rocks: | ||
name: Build rock | ||
uses: canonical/operator-workflows/.github/workflows/build_rocks.yaml | ||
needs: get-runner-image | ||
with: | ||
owner: ${{ env.OWNER }} | ||
registry: ${{ env.REGISTRY }} | ||
runs-on: ${{ needs.get-runner-image.outputs.runs-on }} | ||
trivy-image-config: ${{ inputs.trivy-image-config }} | ||
working-directory: ${{ inputs.working-directory }} |