Skip to content

Commit

Permalink
github workflows (#6)
Browse files Browse the repository at this point in the history
* feat: migrate to maven action with slack notifications

* chore: trigger on github-workflows for testing

* feat: trigger maven workflow on main only
  • Loading branch information
BernhardFuchs authored Feb 25, 2021
1 parent 5014bdc commit 25a86f5
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/deploy-snapshot.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/maven-deploy-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Maven deploy snapshot to Danubetech Nexus

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.1.1
with:
url: https://vault.danubetech.com
token: ${{ secrets.CI_SECRET_READER_PERIODIC_TOKEN }}
tlsSkipVerify: true
secrets: |
ci/data/gh-workflows/maven-danubetech-nexus username | MAVEN_USERNAME ;
ci/data/gh-workflows/maven-danubetech-nexus password | MAVEN_PASSWORD ;
ci/data/gh-workflows/deployment-status slack-webhook-url | SLACK_WEBHOOK_URL
- 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
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,commit,action,eventName,ref,workflow
env:
SLACK_WEBHOOK_URL: ${{ env.SLACK_WEBHOOK_URL }}
if: failure()

0 comments on commit 25a86f5

Please sign in to comment.