Skip to content
This repository was archived by the owner on Mar 15, 2021. It is now read-only.

Commit 7d9608b

Browse files
author
Marius Obert
authored
Merge pull request #10 from maxstreifeneder/master
New Release - 1.4.0
2 parents daa9687 + 50926d0 commit 7d9608b

File tree

5 files changed

+67
-8
lines changed

5 files changed

+67
-8
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
name: Publish Release on GitHub
4747
command: |
4848
VERSION=$(cat ~/repo/package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]' )
49-
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} mta_archives/city-explorer-demo-app_${VERSION}.mtar
49+
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} mta_archives/city-explorer-demo-app.mtar
5050
5151
workflows:
5252
version: 2

azure-pipelines.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Starter pipeline
2+
# Start with a minimal pipeline that you can customize to build and deploy your code.
3+
# Add steps that build, run tests, deploy, and more:
4+
# https://aka.ms/yaml
5+
6+
7+
name: cap-osba-app
8+
resources:
9+
containers:
10+
- container: mta
11+
image: 'ppiper/mta-archive-builder:latest'
12+
options: --user 0:0
13+
- container: cfcli
14+
image: 'ppiper/cf-cli'
15+
options: --user 0:0 --privileged
16+
17+
18+
trigger:
19+
- master
20+
21+
stages:
22+
- stage: Build
23+
displayName: Build MTA for SAP Cloud Platform
24+
jobs:
25+
- job: build
26+
pool:
27+
vmImage: 'ubuntu-latest'
28+
container: mta
29+
steps:
30+
- bash: npm install
31+
displayName: npm install
32+
- bash: npm run build:mta
33+
displayName: Build MTA
34+
- bash: npx cds deploy
35+
displayName: Deploy CDS Artefacts
36+
- bash: npm test
37+
displayName: Test CAP application
38+
- publish: $(System.DefaultWorkingDirectory)/mta_archives/.
39+
artifact: WebApp
40+
41+
- stage: Deploy
42+
displayName: Deployment to SAP Cloud Platform
43+
jobs:
44+
- job: deploy
45+
pool:
46+
vmImage: 'ubuntu-latest'
47+
container: cfcli
48+
steps:
49+
- download: current
50+
artifact: WebApp
51+
- bash: |
52+
cf login -u "$(CF-USER)" -p "$(CF-PASSWORD)" -a "$(CF-API)" -o "$(CF-ORG)" -s "$(CF-SPACE)"
53+
cf deploy $(Pipeline.Workspace)/WebApp/city-explorer-demo-app.mtar -f

mta.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
_schema-version: 2.0.0
1+
_schema-version: 3.3.0
22
ID: city-explorer-demo-app
3-
version: 1.3.6
3+
version: 1.4.0
4+
parameters:
5+
enable-parallel-deployments: true
46
modules:
57
- name: city-cap-router
68
type: approuter.nodejs
79
path: app
10+
deployed-after:
11+
- city-image-uploader
12+
- city-cap-srv
813
parameters:
914
disk-quota: 256M
1015
memory: 256M
@@ -62,12 +67,13 @@ resources:
6267
hdi-container-name: ${service-name}
6368
parameters:
6469
service: hanatrial
70+
service-alternatives: ["hana"]
6571
- name: azure-blob-storage
6672
type: org.cloudfoundry.managed-service
6773
parameters:
6874
service: azure-storage-blob-storage-account-and-container
6975
service-plan: all-in-one
7076
config:
7177
location: "northeurope"
72-
resourceGroup: "SAPTechEd"
78+
resourceGroup: "SAPCloudPlatform"
7379
accessTier: "Cool"

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "city-explorer-demo-app",
3-
"description": "Demo application for TechEd 2019",
4-
"version": "1.3.6",
3+
"description": "Demo application for SAP Cloud Application Programming Model and Azure Services",
4+
"version": "1.4.0",
55
"engines": {
66
"node": "^8.9"
77
},
@@ -24,7 +24,7 @@
2424
"test": "mocha",
2525
"lint": "eslint .",
2626
"deploy:cds": "cds deploy",
27-
"build:mta": "cds build/all && cds deploy && mbt build -p=cf",
27+
"build:mta": "cds build/all && cds deploy && mbt build -p=cf --mtar=city-explorer-demo-app.mtar",
2828
"deploy:cf": "npm run build:mta && cf deploy mta_archives/${npm_package_name}_${npm_package_version}.mtar"
2929
}
3030
}

0 commit comments

Comments
 (0)