-
Notifications
You must be signed in to change notification settings - Fork 24
43 lines (39 loc) · 1.21 KB
/
maven-snapshot.yml
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
43
name: Maven snapshot
on:
push:
paths-ignore:
- '.gitignore'
- 'README.md'
- 'LICENSE'
- 'docs'
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Import Secrets
uses: hashicorp/vault-action@v2.3.0
with:
url: ${{ secrets.VAULT_ADDR }}
token: ${{ secrets.CI_SECRET_READER_PERIODIC_TOKEN }}
caCertificate: ${{ secrets.VAULTCA }}
secrets: |
ci/data/gh-workflows/maven-danubetech-nexus username | MAVEN_USERNAME ;
ci/data/gh-workflows/maven-danubetech-nexus password | MAVEN_PASSWORD
- name: Run maven deploy action
uses: danubetech/github-action-maven-deploy@master
with:
server_id: danubetech-maven-snapshots
env:
MAVEN_USERNAME: ${{ env.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ env.MAVEN_PASSWORD }}
- name: Slack notification
if: failure()
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,commit,action,eventName,ref,workflow
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}