|
| 1 | +name: DataMiner CICD Connector |
| 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/Connector Master Workflow.yml@Connectors |
| 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-C-Example_SNMP-Base |
| 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: staging |
| 36 | + # name: CD |
| 37 | + # runs-on: windows-latest |
| 38 | + # needs: CI |
| 39 | + |
| 40 | + # steps: |
| 41 | + # - uses: actions/checkout@v3 |
| 42 | + |
| 43 | + # - name: Install DataMiner Deploy |
| 44 | + # run: dotnet tool install -g Skyline.DataMiner.CICD.Tools.DataMinerDeploy |
| 45 | + |
| 46 | + # # Deploys the artifact directly to an internet-accessible DataMiner Agent. Deployment from the catalog currently not supported. |
| 47 | + # - name: Download Created Connector Package |
| 48 | + # id: downloadPackage |
| 49 | + # uses: actions/download-artifact@v4 |
| 50 | + # with: |
| 51 | + # name: Connector Package |
| 52 | + # path: _PackageResults |
| 53 | + |
| 54 | + # - name: Find .dmprotocol |
| 55 | + # id: findcreatedpackage |
| 56 | + # run: | |
| 57 | + # IFS=$'\n' |
| 58 | + # echo packageName=$(find _PackageResults -type f -name '*.dmprotocol') >> $GITHUB_OUTPUT |
| 59 | + # unset IFS |
| 60 | + # shell: bash |
| 61 | + |
| 62 | + # - name: Direct Agent Deployment |
| 63 | + # run: dataminer-package-deploy from-artifact --path-to-artifact "${{ steps.findcreatedpackage.outputs.packageName }}" --dm-server-location "${{ secrets.serverLocation }}" --dm-user "${{ secrets.dataminerUser }}" --dm-password "${{ secrets.dataminerPassword }}" |
| 64 | + |
0 commit comments