-
Notifications
You must be signed in to change notification settings - Fork 15
70 lines (59 loc) · 1.93 KB
/
Copy pathci.yml
File metadata and controls
70 lines (59 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: CI
on:
pull_request:
branches: [main]
paths-ignore: ["*.md"]
push:
branches:
- "renovate/**"
# Prevent duplicate runs if Renovate falls back to creating a PR
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
# We are using OpenID Connect to authenticate with Azure with secret.
# https://docs.github.com/en/actions/security-for-github-actions/security-hardening-your-deployments/configuring-openid-connect-in-azure
permissions:
id-token: write
contents: read
jobs:
main:
# We need windows to use nuget
runs-on: [idp]
environment: ci
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get gsoft-nuget-feed secret
id: get_gsoft_nuget_feed_secret
uses: workleap/wl-reusable-workflows/retrieve-managed-secret@main
with:
azure-client-id: ${{ vars.AZURE_CLIENT_ID }}
azure-tenant-id: ${{ vars.AZURE_TENANT_ID }}
azure-subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }}
keyvault-name: ${{ vars.IDP_CICD_KEYVAULT_NAME }}
secret-name: "gsoft-nuget-feed-ado-pat"
- uses: actions/setup-dotnet@v4
with:
source-url: ${{ vars.GSOFTDEV_NUGET_SOURCE }}
env:
NUGET_AUTH_TOKEN: ${{ steps.get_gsoft_nuget_feed_secret.outputs.secret }}
- name: Install Mono
shell: bash
run: |
apt-get update
apt-get install -y mono-complete
- uses: NuGet/setup-nuget@v2
- run: ./Build.ps1
shell: pwsh
env:
NUGET_SOURCE: ${{ vars.GSOFTDEV_NUGET_SOURCE }}
NUGET_API_KEY: ${{ steps.get_gsoft_nuget_feed_secret.outputs.secret }}
linearb:
needs: [main]
uses: workleap/wl-reusable-workflows/.github/workflows/linearb-deployment.yml@main
with:
environment: development
permissions:
id-token: write
contents: read