-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (37 loc) · 1.22 KB
/
build_and_publish_rock.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# reusable workflow for publishing a ROCK
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 }}