|
3 | 3 | push: |
4 | 4 | tags: |
5 | 5 | - v*.*.* |
| 6 | + |
6 | 7 | jobs: |
7 | 8 | create-release: |
8 | 9 | name: create-release |
@@ -111,7 +112,6 @@ jobs: |
111 | 112 |
|
112 | 113 | deb-s3 upload -l --bucket=apt.defguard.net --access-key-id=${{ secrets.AWS_ACCESS_KEY_APT }} --secret-access-key=${{ secrets.AWS_SECRET_KEY_APT }} --s3-region=eu-north-1 --no-fail-if-exists --codename=bookworm --component="$COMPONENT" src-tauri/target/release/bundle/deb/defguard-client_${{ env.VERSION }}_${{ matrix.deb_arch }}.deb |
113 | 114 |
|
114 | | -
|
115 | 115 | build-linux: |
116 | 116 | needs: |
117 | 117 | - create-release |
@@ -395,11 +395,6 @@ jobs: |
395 | 395 | cat PKGBUILD |
396 | 396 | cat .SRCINFO |
397 | 397 |
|
398 | | - build-macos: |
399 | | - needs: |
400 | | - - create-release |
401 | | - uses: ./.github/workflows/build-macos.yml |
402 | | - |
403 | 398 | # Builds Windows MSI and uploads it as artifact |
404 | 399 | build-windows: |
405 | 400 | needs: |
@@ -481,40 +476,3 @@ jobs: |
481 | 476 | asset_path: defguard-client-signed.msi |
482 | 477 | asset_name: defguard-client_${{ env.VERSION }}_x64_en-US.msi |
483 | 478 | asset_content_type: application/octet-stream |
484 | | - |
485 | | - apt-sign: |
486 | | - needs: |
487 | | - - build-linux |
488 | | - - ubuntu-22-04-build |
489 | | - runs-on: |
490 | | - - self-hosted |
491 | | - - Linux |
492 | | - - X64 |
493 | | - strategy: |
494 | | - fail-fast: false |
495 | | - steps: |
496 | | - - name: Sign APT repository |
497 | | - run: | |
498 | | - export AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_APT }} |
499 | | - export AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_KEY_APT }} |
500 | | - export AWS_REGION=eu-north-1 |
501 | | - sudo apt update -y |
502 | | - sudo apt install -y awscli curl jq |
503 | | -
|
504 | | - for DIST in trixie bookworm; do |
505 | | - aws s3 cp s3://apt.defguard.net/dists/${DIST}/Release . |
506 | | -
|
507 | | - curl -X POST "${{ secrets.DEFGUARD_SIGNING_URL }}?signature_type=both" \ |
508 | | - -H "Authorization: Bearer ${{ secrets.DEFGUARD_SIGNING_API_KEY }}" \ |
509 | | - -F "file=@Release" \ |
510 | | - -o response.json |
511 | | -
|
512 | | - cat response.json | jq -r '.files["Release.gpg"].content' | base64 --decode > Release.gpg |
513 | | - cat response.json | jq -r '.files.Release.content' | base64 --decode > InRelease |
514 | | -
|
515 | | - aws s3 cp Release.gpg s3://apt.defguard.net/dists/${DIST}/ --acl public-read |
516 | | - aws s3 cp InRelease s3://apt.defguard.net/dists/${DIST}/ --acl public-read |
517 | | -
|
518 | | - done |
519 | | - (aws s3 ls s3://apt.defguard.net/dists/ --recursive; aws s3 ls s3://apt.defguard.net/pool/ --recursive) | awk '{print "<a href=\""$4"\">"$4"</a><br>"}' > index.html |
520 | | - aws s3 cp index.html s3://apt.defguard.net/ --acl public-read |
0 commit comments