Skip to content

Instantly share code, notes, and snippets.

@pedes
Last active August 26, 2022 07:23
Show Gist options
  • Save pedes/009151bcdbde1995a16aeaa30981002c to your computer and use it in GitHub Desktop.
Save pedes/009151bcdbde1995a16aeaa30981002c to your computer and use it in GitHub Desktop.
# Steps for executing the deployment against Cloudhub Anypoint Platform
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- uses: actions/download-artifact@v3
with:
name: artifacts
- uses: s4u/[email protected]
with:
servers: |
[{
"id": "anypoint-exchange-v3",
"username": "${{ secrets.ANYPOINT_USERNAME }}",
"password": "${{ secrets.ANYPOINT_PASSWORD }}"
}]
- name: Deploy to CloudHub
env:
AUTHOR: "Andres Morales"
run: |
artifactName=$(ls *.jar | head -1)
mvn deploy -DmuleDeploy -Dap.clientid=${{ secrets.AP_CLIENT_ID }} \
-Dap.clientsecret=${{ secrets.AP_CLIENT_SECRET }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment