Skip to content

Mulesoft CI/CD with domain build to package and deply with anypoint-cli-v4

Notifications You must be signed in to change notification settings

dvgamerr/mulesoft-cicd-integation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mulesoft-cicd-integation

Mulesoft Package

Config build and deploy

  • pom.xml Add config.
<distributionManagement>
  <repository>
    <id>anypoint-exchange-v3</id>
    <name>Corporate Repository</name>
    <url>https://maven.anypoint.mulesoft.com/api/v3/organizations/${env.ORGANIZATION_ID}/maven</url>
    <layout>default</layout>
  </repository>
</distributionManagement>


<build>
  <plugins>
    <plugin>

      ...

      <configuration>
        <cloudHubDeployment>
	  <muleVersion>${app.runtime}</muleVersion>
	  <connectedAppClientId>${mulesoft.client.id}</connectedAppClientId>
	  <connectedAppClientSecret>${mulesoft.client.secret}</connectedAppClientSecret>
	  <connectedAppGrantType>client_credentials</connectedAppGrantType>
	  <applicationName>${env.APP_ID}</applicationName>
	  <environment>${env.ENVIRONMENT}</environment>
          <workers>1</workers>
          <workerType>MICRO</workerType>
          <objectStoreV2>true</objectStoreV2>
          <region>us-east-2</region>
          <businessGroupId>${env.ORGANIZATION_ID}</businessGroupId>
        </cloudHubDeployment>
      </configuration>
    </plugin>
	</build>
  ...

</plugins>
  • create settings.xmlin repos, like settings.xml.
  • Create a Connectioned App Any organization administrator can control it.
  • create Secret Actions CLIENT_ID, CLIENT_SECRET, ORGANIZATION_ID
  • copy github actions build.xml and edit for your project

Referance

About

Mulesoft CI/CD with domain build to package and deply with anypoint-cli-v4

Topics

Resources

Stars

Watchers

Forks