Skip to content

Commit 7ce3cd3

Browse files
committed
linux release: sign and publish
Add step two of Linux release process to sign and upload final installer. Additionally, remove the no-longer-needed build-signed-deb workflow.
1 parent 5672a77 commit 7ce3cd3

File tree

2 files changed

+48
-93
lines changed

2 files changed

+48
-93
lines changed

.github/workflows/build-signed-deb.yml

Lines changed: 0 additions & 93 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,3 +390,51 @@ jobs:
390390
name: linux-build
391391
path: |
392392
linux-build
393+
394+
linux-sign:
395+
name: Sign Debian package
396+
# ESRP service requires signing to run on Windows
397+
runs-on: windows-latest
398+
needs: linux-build
399+
steps:
400+
- uses: actions/checkout@v3
401+
402+
- name: Download artifacts
403+
uses: actions/download-artifact@v3
404+
with:
405+
name: linux-build
406+
path: artifacts
407+
408+
- uses: azure/login@v1
409+
with:
410+
creds: ${{ secrets.AZURE_CREDENTIALS }}
411+
412+
- name: Set up ESRP client
413+
shell: pwsh
414+
env:
415+
AZURE_STORAGE_KEY: ${{ secrets.AZURE_STORAGE_KEY }}
416+
AZURE_VAULT: ${{ secrets.AZURE_VAULT }}
417+
AUTH_CERT: ${{ secrets.AZURE_VAULT_AUTH_CERT_NAME }}
418+
REQUEST_SIGNING_CERT: ${{ secrets.AZURE_VAULT_REQUEST_SIGNING_CERT_NAME }}
419+
run: |
420+
.github\set_up_esrp.ps1
421+
422+
- name: Run ESRP client
423+
shell: pwsh
424+
env:
425+
AZURE_AAD_ID: ${{ secrets.AZURE_AAD_ID }}
426+
# We temporarily need two AAD IDs, as we're using an SSL certificate associated
427+
# with an older App Registration until we have the required hardware to approve
428+
# the new certificate in SSL Admin.
429+
AZURE_AAD_ID_SSL: ${{ secrets.AZURE_AAD_ID_SSL }}
430+
LINUX_KEY_CODE: ${{ secrets.LINUX_KEY_CODE }}
431+
LINUX_OP_CODE: ${{ secrets.LINUX_OPERATION_CODE }}
432+
run: |
433+
python .github/run_esrp_signing.py artifacts/deb $env:LINUX_KEY_CODE $env:LINUX_OP_CODE
434+
435+
- name: Upload signed Debian package
436+
uses: actions/upload-artifact@v3
437+
with:
438+
name: linux-sign
439+
path: |
440+
signed

0 commit comments

Comments
 (0)