Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandramartinez committed May 1, 2024
1 parent dd06bec commit 85cb191
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,25 @@
>
> This is a simple Mule application to test. Please update the `app.name` and `env` properties from the `pom.xml` to your own.
## Branches

Different examples are being demonstrated per branch. Here's the summary of each.

|| `main` | `connected-app` | `cloudhub2`
|-|-|-|-
|Deployment|CH1|CH1|CH2
|Passing secured properties|✅|✅|✅
|MUnit testing in pipeline|✅|✅|❌
|Running MUnit coverage|✅|✅|❌
|Nexus credentials|✅|✅|❌
|Auth|username/password in `pom.xml`|connected app in `pom.xml`|server in `settings.xml` (using connected app)
|Maven version|`3.8.0`|`3.8.0`|`4.1.1`
|Runtime|`4.4.0` through the `muleVersion` property|`4.4.0` through the `muleVersion` property|`4.4.0` through the `releaseChannel` property (`NONE`)

## Other resources

The initial versions of the pipeline are based on the following repository created by Archana Patel: [arch-jn/github-actions-mule-cicd-demo](https://github.com/arch-jn/github-actions-mule-cicd-demo).
The initial versions of the pipeline are based on the following repository created by Archana Patel: [arch-jn/github-actions-mule-cicd-demo](https://github.com/arch-jn/github-actions-mule-cicd-demo).

- [Docs] [Deploy Applications to CloudHub Using the Mule Maven Plugin](https://docs.mulesoft.com/mule-runtime/latest/deploy-to-cloudhub)
- [Docs] [Deploy Applications to CloudHub 2.0 Using the Mule Maven Plugin](https://docs.mulesoft.com/mule-runtime/latest/deploy-to-cloudhub-2)
- [Docs] [CloudHub 2.0 Architecture - Regions and DNS Records](https://docs.mulesoft.com/cloudhub-2/ch2-architecture#regions-and-dns-records)
7 changes: 4 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
<modelVersion>4.0.0</modelVersion>
<groupId>4500658a-7637-4fcf-bc7d-51d1feb28edb</groupId> <!-- make sure to add your business group ID here -->
<artifactId>github-actions</artifactId>
<version>1.0.9</version> <!-- this has to change EVERY TIME you want to re-deploy -->
<version>1.0.10</version> <!-- this has to change EVERY TIME you want to re-deploy -->
<packaging>mule-application</packaging>
<name>github-actions</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<mule.maven.plugin.version>4.1.1</mule.maven.plugin.version> <!-- use at least v4.1.0 -->
<env>Sandbox</env>
<releaseChannel>NONE</releaseChannel> <!-- use `NONE` for Mule Runtime 4.4 or `LTS`/`EDGE` for 4.6+ -->
<region>Cloudhub-US-East-2</region> <!-- make sure it's one of these Target Names: https://docs.mulesoft.com/cloudhub-2/ch2-architecture#regions-and-dns-records -->
<!-- note: free trial accounts only have access to Cloudhub-US-East-2 -->
<serverId>Repository</serverId> <!-- can be whatever you want, just make sure it matches the settings.xml -->
Expand Down Expand Up @@ -38,15 +39,15 @@
<target>${region}</target>
<server>${serverId}</server> <!-- this is where our credentials will be stored -->
<applicationName>${project.artifactId}</applicationName>
<releaseChannel>NONE</releaseChannel>
<releaseChannel>${releaseChannel}</releaseChannel>
<replicas>1</replicas>
<vCores>0.1</vCores>
<deploymentSettings>
<generateDefaultPublicUrl>true</generateDefaultPublicUrl>
</deploymentSettings>
<!-- Start: SECURED PROPERTIES CI/CD -->
<secureProperties>
<secure.key>${decryption.key}</secure.key>
<secure.key>${decryption.key}</secure.key> <!-- this comes from the build.yml / github secrets -->
</secureProperties>
<!-- End: SECURED PROPERTIES CI/CD -->

Expand Down

0 comments on commit 85cb191

Please sign in to comment.