Build and publish rock #10
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
# reusable workflow for publishing all charms in this repo | |
name: Build and publish rock | |
on: | |
workflow_call: | |
inputs: | |
rockcraft-dir: | |
description: "Path to rock directory, i.e. directory containing rockcraft.yaml" | |
required: true | |
default: '.' | |
type: string | |
source-branch: | |
description: Github branch from this repo to publish. If blank, will use the default branch | |
default: '' | |
required: false | |
type: string | |
workflow_dispatch: | |
inputs: | |
rockcraft-dir: | |
description: "Path to rock directory, i.e. directory containing rockcraft.yaml" | |
required: true | |
default: '.' | |
type: string | |
source-branch: | |
description: Github branch from this repo to publish. If blank, will use the default branch | |
default: '' | |
required: false | |
type: string | |
jobs: | |
build-publish-rock: | |
name: Build and publish ROCK | |
uses: canonical/charmed-kubeflow-workflows/.github/workflows/build_and_publish_rock.yaml@main | |
with: | |
rockcraft-dir: ${{ inputs.rockcraft-dir }} | |
source-branch: ${{ inputs.source-branch }} | |
secrets: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} |