Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ssahadevan-mendix/mendix-cicd
Repository for Mendix cicd for Public or Dedicated Cloud
https://github.com/ssahadevan-mendix/mendix-cicd
automation cicd cloud devops mendix rest-api
Last synced: 16 days ago
JSON representation
Repository for Mendix cicd for Public or Dedicated Cloud
- Host: GitHub
- URL: https://github.com/ssahadevan-mendix/mendix-cicd
- Owner: ssahadevan-mendix
- License: mit
- Created: 2022-02-11T16:57:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-01T03:20:33.000Z (11 months ago)
- Last Synced: 2024-03-01T04:28:26.119Z (11 months ago)
- Topics: automation, cicd, cloud, devops, mendix, rest-api
- Language: Shell
- Homepage:
- Size: 137 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# Automation of build and deploy to Mendix Cloud
Example of automating the build and deploy pipelines using the Mendix rest api's.
It invokes REST-API's in the Mendix cloud. These API's will work for licensed applications in the Mendix Cloud ( hosted platform or Dedicated ).
![Sequence Diagram](/images/sequence.png)
## To Execute
Download or clone this repository
Import these files into your Gitlab project.
Update env.sh with your username and key
Update env.sh AppId, Revision Number, Package Id, Environment
Execute your pipleine.### .gitlab-ci.yml
Drives the pipeline in gitlab.
Invokes other scripts as needed### env.sh
For any environment variables
Your mendix user name and mendix-apiKey for authentication are stored here.Change baseUrl if you have a dedicated Mendix Cloud
export baseUrl="https://deploy.mendix.com"To change the Mendix application , configure AppId in env.sh
export AppID="cicd-demo"Default setting for targetEnvironment is "Acceptance". This can be changed in env.sh by changing the targetEnvironment variable.
export targetEnvironment="Acceptance"### build.sh
Triggers the build### Stop.sh
Stops the Mendix application that is running in the environment### Transport.sh
Transports package to the environment### Start.sh
Starts the application in the specified environment### Pipeline Screenshots
https://github.com/ssahadevan-mendix/mendix-cicd/wiki/Automation-of-build-and-deploy-to-Mendix-Cloud
### Mendix Platform Screenshots
https://github.com/ssahadevan-mendix/mendix-cicd/wiki/Screenshots-of-Mendix-Platform
### References:
https://docs.mendix.com/howto/integration/implement-cicd-pipeline
https://docs.mendix.com/apidocs-mxsdk/apidocs/authentication
https://docs.mendix.com/apidocs-mxsdk/apidocs/build-api
https://docs.mendix.com/apidocs-mxsdk/apidocs/deploy-api