This repository has been archived by the owner on Jul 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
62 lines (58 loc) · 2.15 KB
/
action.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
name: Shipwright Setup (CI)
description: Installs Shipwright Build Controller, CLI and Container Registry
branding:
color: blue
icon: anchor
inputs:
tekton-version:
description: Tekton Pipelines release version
required: false
default: v0.37.0
shipwright-ref:
description: Shipwright Build Controller repository reference, tag or SHA
required: false
default: v0.10.0
cli-ref:
description: Shipwright CLI repository reference, tag or SHA
required: false
default: v0.10.0
setup-registry:
description: When enabled, the action deploys a Container Registry instance
required: true
default: "true"
runs:
using: composite
steps:
# pre-flight checks, making sure the dependencies needed for the upcoming steps are available
- shell: bash
run: ${{ github.action_path }}/probe.sh
# deploying the container registry when input flag is set, waiting for the deployment to reach
# ready status before proceeding
- shell: bash
if: ${{ inputs.setup-registry == 'true' }}
run: ${{ github.action_path }}/install-registry.sh
# deploying tekton pipline controller and dependencies, waiting for it to reach ready status
- shell: bash
run: |
TEKTON_VERSION="${{ inputs.tekton-version }}" \
${{ github.action_path }}/install-tekton.sh
# checking out the build controller project locally to perform the rollout and inspection of the
# controller instance in the cluster
- uses: actions/checkout@v3
with:
repository: shipwright-io/build
ref: ${{ inputs.shipwright-ref }}
path: src/build
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
- shell: bash
run: ${{ github.action_path }}/install-shipwright.sh
# checking out the CLI project locally, performing the installation to let it available on PATH
- uses: actions/checkout@v3
with:
repository: shipwright-io/cli
ref: ${{ inputs.cli-ref }}
path: src/cli
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
- shell: bash
run: ${{ github.action_path }}/install-cli.sh