-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample-workflow-cf-push.yaml
36 lines (36 loc) · 1.01 KB
/
sample-workflow-cf-push.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
name: spring-app-advisor-workflow
on:
push:
branches:
- 'main'
jobs:
cf_push_app_advisor_job:
runs-on: ubuntu-latest
permissions: write-all
name: Push Spring App to Cloud Foundry
defaults:
run:
shell:
bash
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'liberica'
java-version: '21'
- name: CF Push
uses: cpage-pivotal/cf-push-manifest-action@v8
with:
cf_api: <<ENTER VALUE>>
cf_user: <<ENTER VALUE>>
cf_password: ${{ secrets.CF_PASSWORD }}
cf_org: <<ENTER VALUE>>
cf_space: <<ENTER VALUE>>
- 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>>