-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample-workflow-tanzu-deploy.yaml
40 lines (39 loc) · 1.32 KB
/
sample-workflow-tanzu-deploy.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
name: tanzu-deploy-app-advisor-workflow
on:
push:
branches:
- 'main'
jobs:
tanzu_deploy_app_advisor_job:
runs-on: ubuntu-latest
permissions: write-all
name: Deploy to Tanzu Platform on Commit and Run Spring Application Advisor
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy application to Tanzu Platform
uses: cpage-pivotal/[email protected]
with:
tanzu_api_token: ${{ secrets.TanzuApiToken }}
container_registry: ghcr.io/${{ github.actor }}/<<ENTER VALUE>>
buildPlanSource: simple.tanzu.vmware.com
javaVersion: 17
project: <<ENTER VALUE>>
space: <<ENTER VALUE>>
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'liberica'
java-version: '21'
- name: Run Spring Application Advisor
uses: cpage-pivotal/[email protected]
with:
artifactory_token: ${{ secrets.ArtifactoryToken }}
git_token: ${{ secrets.GITHUB_TOKEN }}
app_advisor_server: <<ENTER VALUE>>