Skip to content

Commit c557b4b

Browse files
committed
Adding a new workflow: DataMiner CICD Automation
1 parent ca23472 commit c557b4b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: DataMiner CICD Automation
2+
on:
3+
push:
4+
branches: []
5+
tags:
6+
- '[0-9]+.[0-9]+.[0-9]+.[0-9]+'
7+
- '[0-9]+.[0-9]+.[0-9]+-[0-9a-zA-Z]+'
8+
workflow_dispatch:
9+
jobs:
10+
CI:
11+
name: CI
12+
uses: SkylineCommunications/_ReusableWorkflows/.github/workflows/Automation Master Workflow.yml@main
13+
with:
14+
referenceName: ${{ github.ref_name }}
15+
runNumber: ${{ github.run_number }}
16+
referenceType: ${{ github.ref_type }}
17+
repository: ${{ github.repository }}
18+
owner: ${{ github.repository_owner }}
19+
sonarCloudProjectName: '# Grab your project id from https://sonarcloud.io/project/create.'
20+
secrets:
21+
api-key: ${{ secrets.DATAMINER_DEPLOY_KEY }}
22+
sonarCloudToken: ${{ secrets.SONAR_TOKEN }}
23+
CD:
24+
if: github.ref_type == 'tag'
25+
environment: production
26+
name: CD
27+
runs-on: ubuntu-latest
28+
needs: CI
29+
steps:
30+
- uses: actions/checkout@v3
31+
- name: Skyline DataMiner Deploy Action
32+
uses: SkylineCommunications/Skyline-DataMiner-Deploy-Action@v1
33+
with:
34+
stage: Deploy
35+
api-key: ${{ secrets.DATAMINER_DEPLOY_KEY }}
36+
artifact-id: ${{ needs.CI.outputs.artifact-id }}

0 commit comments

Comments
 (0)