|
| 1 | +name: DataMiner CICD Automation |
| 2 | + |
| 3 | +# Controls when the workflow will run |
| 4 | +on: |
| 5 | + # Triggers the workflow on push or pull request events but only for the master branch |
| 6 | + push: |
| 7 | + branches: [] |
| 8 | + tags: |
| 9 | + - "[0-9]+.[0-9]+.[0-9]+.[0-9]+" |
| 10 | + - "[0-9]+.[0-9]+.[0-9]+.[0-9]+-**" |
| 11 | + |
| 12 | + # Allows you to run this workflow manually from the Actions tab |
| 13 | + workflow_dispatch: |
| 14 | + |
| 15 | +# A workflow run is made up of one or more jobs that can run sequentially or in parallel |
| 16 | +jobs: |
| 17 | + |
| 18 | + CI: |
| 19 | + uses: SkylineCommunications/_ReusableWorkflows/.github/workflows/Automation Master Workflow.yml@main |
| 20 | + with: |
| 21 | + referenceName: ${{ github.ref_name }} |
| 22 | + runNumber: ${{ github.run_number }} |
| 23 | + referenceType: ${{ github.ref_type }} |
| 24 | + repository: ${{ github.repository }} |
| 25 | + owner: ${{ github.repository_owner }} |
| 26 | + sonarCloudProjectName: SkylineCommunications_SLC-AS-Example_InteractiveAutomationScriptToolkit |
| 27 | + secrets: |
| 28 | + # The API-key: generated in the DCP Admin app (https://admin.dataminer.services/) as authentication for a certain DataMiner System. |
| 29 | + api-key: ${{ secrets.DATAMINER_DEPLOY_KEY }} |
| 30 | + sonarCloudToken: ${{ secrets.SONAR_TOKEN }} |
| 31 | + |
| 32 | + # # Optional 0 or More CD Jobs as needed |
| 33 | + # CD: |
| 34 | + # if: github.ref_type == 'tag' |
| 35 | + # environment: production |
| 36 | + # name: CD |
| 37 | + # runs-on: ubuntu-latest |
| 38 | + # needs: CI |
| 39 | + |
| 40 | + # steps: |
| 41 | + # - uses: actions/checkout@v4 |
| 42 | + |
| 43 | + # - name: Skyline DataMiner Deploy Action |
| 44 | + # uses: SkylineCommunications/Skyline-DataMiner-Deploy-Action@v1 |
| 45 | + # with: |
| 46 | + # # Stage deploy |
| 47 | + # stage: Deploy |
| 48 | + # # The API-key: generated in the DCP Admin app (https://admin.dataminer.services/) as authentication for a certain DataMiner System. |
| 49 | + # api-key: ${{ secrets.DATAMINER_DEPLOY_KEY }} |
| 50 | + # # Id of the uploaded artifact |
| 51 | + # artifact-id: ${{ needs.CI.outputs.artifact-id }} |
0 commit comments