Last active
August 26, 2022 07:23
-
-
Save pedes/009151bcdbde1995a16aeaa30981002c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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