-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.31 KB
/
DEPLOY.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Deploy Snapshots
on:
push:
branches:
- main
workflow_dispatch: { }
jobs:
deploy-snapshots:
name: Deploy snapshot artifacts
runs-on: ubuntu-latest
concurrency: deploy-snapshots
steps:
- uses: actions/checkout@v3
- name: Import Secrets
id: secrets # important to refer to it in later steps
uses: hashicorp/[email protected]
with:
url: ${{ secrets.VAULT_ADDR }}
method: approle
roleId: ${{ secrets.VAULT_ROLE_ID }}
secretId: ${{ secrets.VAULT_SECRET_ID }}
exportEnv: false # we rely on step outputs, no need for environment variables
secrets: |
secret/data/products/connectors/ci/common ARTIFACTORY_USR;
secret/data/products/connectors/ci/common ARTIFACTORY_PSW;
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
server-id: camunda-nexus
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Build Artifact
run: mvn -B compile generate-sources source:jar javadoc:jar deploy
env:
MAVEN_USERNAME: ${{ steps.secrets.outputs.ARTIFACTORY_USR }}
MAVEN_PASSWORD: ${{ steps.secrets.outputs.ARTIFACTORY_PSW }}