Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify certificate signed #1325

Closed
wants to merge 12 commits into from
60 changes: 38 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
strategy:
matrix:
include:
- os: windows-2022
name: Windows
#- os: windows-2022
# name: Windows
- os: ubuntu-22.04
name: Linux
fail-fast: false
Expand All @@ -37,24 +37,40 @@ jobs:
dotnet-quality: 'preview'
- name: Build
run: dotnet build src --configuration Release
- name: Upload packages
if: matrix.name == 'Windows'
uses: actions/[email protected]
- name: Sign NuGet packages
uses: Particular/[email protected]
with:
name: NuGet packages
path: nugets/
retention-days: 7
- name: Azure login
uses: azure/[email protected]
with:
creds: ${{ secrets.AZURE_ACI_CREDENTIALS }}
enable-AzPSSession: true
- name: Setup RabbitMQ
uses: Particular/[email protected]
with:
connection-string-name: RabbitMQTransport_ConnectionString
tag: RabbitMQTransport
- name: Run tests
uses: Particular/[email protected]
with:
reset-script: dotnet run --project src/targets
client-id: ${{ secrets.AZURE_KEY_VAULT_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_KEY_VAULT_TENANT_ID }}
client-secret: ${{ secrets.AZURE_KEY_VAULT_CLIENT_SECRET }}
certificate-name: ${{ secrets.AZURE_KEY_VAULT_CERTIFICATE_NAME }}
- name: Verify Signed NuGet Packages
shell: pwsh
run: |
Get-ChildItem -Path nugets -Filter *.nupkg | ForEach-Object {

dotnet nuget verify $_.FullName
}
- name: test next step after signing
run: echo "Hello world"
#- name: Upload packages
# if: matrix.name == 'Windows'
# uses: actions/[email protected]
# with:
# name: NuGet packages
# path: nugets/
# retention-days: 7
#- name: Azure login
# uses: azure/[email protected]
# with:
# creds: ${{ secrets.AZURE_ACI_CREDENTIALS }}
# enable-AzPSSession: true
#- name: Setup RabbitMQ
# uses: Particular/[email protected]
# with:
# connection-string-name: RabbitMQTransport_ConnectionString
# tag: RabbitMQTransport
#- name: Run tests
# uses: Particular/[email protected]
# with:
# reset-script: dotnet run --project src/targets
35 changes: 20 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Release
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

#push:
# tags:
# - '[0-9]+.[0-9]+.[0-9]+'
# - '[0-9]+.[0-9]+.[0-9]+-*'
env:
DOTNET_NOLOGO: true
jobs:
Expand All @@ -27,14 +30,16 @@ jobs:
client-id: ${{ secrets.AZURE_KEY_VAULT_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_KEY_VAULT_TENANT_ID }}
client-secret: ${{ secrets.AZURE_KEY_VAULT_CLIENT_SECRET }}
certificate-name: ${{ secrets.AZURE_KEY_VAULT_CERTIFICATE_NAME }}
- name: Publish artifacts
uses: actions/[email protected]
with:
name: nugets
path: nugets/*
retention-days: 1
- name: Deploy
uses: Particular/[email protected]
with:
octopus-deploy-api-key: ${{ secrets.OCTOPUS_DEPLOY_API_KEY }}
certificate-name: ${{ secrets.AZURE_KEY_VAULT_CERTIFICATE_NAME }}
- name: test next step after signing
run: echo "Hello world"
#- name: Publish artifacts
# uses: actions/[email protected]
# with:
# name: nugets
# path: nugets/*
# retention-days: 1
#- name: Deploy
# uses: Particular/[email protected]
# with:
# octopus-deploy-api-key: ${{ secrets.OCTOPUS_DEPLOY_API_KEY }}