@@ -19,55 +19,59 @@ jobs:
1919 runs-on : ubuntu-latest
2020
2121 steps :
22- - name : Checkout this repository
23- uses : actions/checkout@v2
24- with :
25- ref : ${{ github.event.inputs.deploy_branch }}
26-
27- - name : Set up JDK 21
28- uses : actions/setup-java@v3
29- with :
30- distribution : ' temurin'
31- java-version : ' 21'
32-
33- - name : Setup Node.js
34- uses : actions/setup-node@v3
35- with :
36- node-version : ' 18' # Change this to at least version 18
37-
38- - name : Install MBT
39- run : npm install -g mbt
40-
41- - name : Build and package
42- run : |
43- mvn clean install -P unit-tests -DskipIntegrationTests
44-
45- - name : Clone the cloud-cap-samples-java repo
46- run : git clone --depth 1 --branch main https://github.com/vibhutikumar07/cloud-cap-samples-java.git
47-
48- - name : Change directory to cloud-cap-samples-java
49- working-directory : cloud-cap-samples-java
50- run : pwd # Verifies that we're in the correct directory
51-
52- - name : Run mbt build
53- working-directory : cloud-cap-samples-java
54- run : |
55- echo "java version"
56- java --version
57- mbt build
58- - name : Deploy to Cloud Foundry
59- working-directory : cloud-cap-samples-java
60- run : |
61- echo "Deploying to ${{ github.event.inputs.cf_space }}......"
62-
63- # Install cf CLI plugin
64- cf install-plugin multiapps -f
65- # Login to Cloud Foundry again to ensure session is active
66- #cf login -a ${{ secrets.CF_API }} -u ${{ secrets.CF_USER }} -p ${{ secrets.CF_PASSWORD }} -o ${{ secrets.CF_ORG }} -s ${{ github.event.inputs.cf_space }}
67- cf login -a ${{ secrets.CF_API }} -u ${{ secrets.CF_USER }} -p ${{ secrets.CF_PASSWORD }} -o ${{ secrets.CF_ORG }} -s ${{ secrets.CF_SPACE_RISHI }}
68- # Deploy the application
69- echo "Current directory.."
70- pwd
71- ls -lrth
72- echo "Running cf deploy"
73- cf deploy mta_archives/bookshop-mt_1.0.0.mtar -f
22+ - name : Checkout this repository
23+ uses : actions/checkout@v2
24+ with :
25+ ref : ${{ github.event.inputs.deploy_branch }}
26+
27+ - name : Set up JDK 21
28+ uses : actions/setup-java@v3
29+ with :
30+ distribution : ' temurin'
31+ java-version : ' 21'
32+
33+ - name : Build and package
34+ run : |
35+ mvn clean install -P unit-tests -DskipIntegrationTests
36+
37+ - name : Setup Node.js
38+ uses : actions/setup-node@v3
39+ with :
40+ node-version : ' 18' # Change this to at least version 18
41+
42+ - name : Install MBT
43+ run : npm install -g mbt
44+
45+ - name : Build and package
46+ run : |
47+ mvn clean install -P unit-tests -DskipIntegrationTests
48+
49+ - name : Clone the cloud-cap-samples-java repo
50+ run : git clone --depth 1 --branch main https://github.com/vibhutikumar07/cloud-cap-samples-java.git
51+
52+ - name : Change directory to cloud-cap-samples-java
53+ working-directory : cloud-cap-samples-java
54+ run : pwd # Verifies that we're in the correct directory
55+
56+ - name : Run mbt build
57+ working-directory : cloud-cap-samples-java
58+ run : |
59+ echo "java version"
60+ java --version
61+ mbt build
62+ - name : Deploy to Cloud Foundry
63+ working-directory : cloud-cap-samples-java
64+ run : |
65+ echo "Deploying to ${{ github.event.inputs.cf_space }}......"
66+
67+ # Install cf CLI plugin
68+ cf install-plugin multiapps -f
69+ # Login to Cloud Foundry again to ensure session is active
70+ #cf login -a ${{ secrets.CF_API }} -u ${{ secrets.CF_USER }} -p ${{ secrets.CF_PASSWORD }} -o ${{ secrets.CF_ORG }} -s ${{ github.event.inputs.cf_space }}
71+ cf login -a ${{ secrets.CF_API }} -u ${{ secrets.CF_USER }} -p ${{ secrets.CF_PASSWORD }} -o ${{ secrets.CF_ORG }} -s ${{ secrets.CF_SPACE_RISHI }}
72+ # Deploy the application
73+ echo "Current directory.."
74+ pwd
75+ ls -lrth
76+ echo "Running cf deploy"
77+ cf deploy mta_archives/bookshop-mt_1.0.0.mtar -f
0 commit comments