-
Notifications
You must be signed in to change notification settings - Fork 7
/
action.yml
48 lines (48 loc) · 1.41 KB
/
action.yml
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
# action.yml
name: 'Tanzu Deploy'
description: 'Deploy an application to Tanzu Platform for Kubernetes'
inputs:
tanzu_api_token:
description: 'API Token used to authenticate to Tanzu Platform'
required: true
default: ''
container_registry:
description: 'Registry you will push images to (e.g. myrepo.azurecr.io/build/{name}'
required: true
default: ''
project:
description: 'Tanzu Platform project'
required: true
default: ''
space:
description: 'Tanzu Platform space'
required: true
default: ''
buildPlanSource:
description: '(Optional) Name of custom build plan'
required: false
default: 'simple.tanzu.vmware.com'
javaVersion:
description: 'JVM version to be used for Java workloads'
required: false
default: '17'
#outputs:
# time: # id of output
# description: 'The time we greeted you'
runs:
using: 'composite'
steps:
- name: Log into Tanzu Platform
run: ${{ github.action_path }}/login-platform.sh
shell: bash
env:
TANZU_API_TOKEN: ${{ inputs.tanzu_api_token }}
- name: Deploy Application
run: ${{ github.action_path }}/deploy-app.sh
shell: bash
env:
CONTAINER_REGISTRY: ${{ inputs.container_registry }}
PROJECT: ${{ inputs.project }}
SPACE: ${{ inputs.space }}
BUILD_PLAN_SOURCE: ${{ inputs.buildPlanSource }}
JAVA_VERSION: ${{ inputs.javaVersion }}