This repository has been archived by the owner on Mar 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from maxstreifeneder/master
New Release - 1.4.0
- Loading branch information
Showing
5 changed files
with
67 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Starter pipeline | ||
# Start with a minimal pipeline that you can customize to build and deploy your code. | ||
# Add steps that build, run tests, deploy, and more: | ||
# https://aka.ms/yaml | ||
|
||
|
||
name: cap-osba-app | ||
resources: | ||
containers: | ||
- container: mta | ||
image: 'ppiper/mta-archive-builder:latest' | ||
options: --user 0:0 | ||
- container: cfcli | ||
image: 'ppiper/cf-cli' | ||
options: --user 0:0 --privileged | ||
|
||
|
||
trigger: | ||
- master | ||
|
||
stages: | ||
- stage: Build | ||
displayName: Build MTA for SAP Cloud Platform | ||
jobs: | ||
- job: build | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
container: mta | ||
steps: | ||
- bash: npm install | ||
displayName: npm install | ||
- bash: npm run build:mta | ||
displayName: Build MTA | ||
- bash: npx cds deploy | ||
displayName: Deploy CDS Artefacts | ||
- bash: npm test | ||
displayName: Test CAP application | ||
- publish: $(System.DefaultWorkingDirectory)/mta_archives/. | ||
artifact: WebApp | ||
|
||
- stage: Deploy | ||
displayName: Deployment to SAP Cloud Platform | ||
jobs: | ||
- job: deploy | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
container: cfcli | ||
steps: | ||
- download: current | ||
artifact: WebApp | ||
- bash: | | ||
cf login -u "$(CF-USER)" -p "$(CF-PASSWORD)" -a "$(CF-API)" -o "$(CF-ORG)" -s "$(CF-SPACE)" | ||
cf deploy $(Pipeline.Workspace)/WebApp/city-explorer-demo-app.mtar -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters