Skip to content

Maven release

Maven release #25

Workflow file for this run

name: Maven release artifact
on:
workflow_dispatch:
jobs:
maven-release:
uses: danubetech/workflows/.github/workflows/maven-release.yml@main
with:
GLOBAL_MAVEN_REPO_SERVER_ID: danubetech-maven-releases
secrets:
VAULT_ADDR: ${{ secrets.VAULT_ADDR }}
CI_SECRET_READER_PERIODIC_TOKEN: ${{ secrets.CI_SECRET_READER_PERIODIC_TOKEN }}
VAULTCA: ${{ secrets.VAULTCA }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
trigger-related-workflows:
needs: [ maven-release ]
runs-on: ubuntu-latest
steps:
- name: Import Secrets
uses: hashicorp/vault-action@v2.3.1
with:
url: ${{ secrets.VAULT_ADDR }}
token: ${{ secrets.CI_SECRET_READER_PERIODIC_TOKEN }}
caCertificate: ${{ secrets.VAULTCA }}
secrets: |
ci/data/gh-workflows/workflow-dispatch token | WORKFLOW_DISPATCH_TOKEN ;
ci/data/gh-workflows/deployment-status slack-webhook-url | SLACK_WEBHOOK_URL
- name: Repository Dispatch
uses: benc-uk/workflow-dispatch@v1
with:
token: ${{ env.WORKFLOW_DISPATCH_TOKEN }}
workflow: "Docker release image" # docker-release.yml
- 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: ${{ env.SLACK_WEBHOOK_URL }}