File tree Expand file tree Collapse file tree 5 files changed +5
-27
lines changed Expand file tree Collapse file tree 5 files changed +5
-27
lines changed Original file line number Diff line number Diff line change @@ -9,17 +9,10 @@ inputs:
99 arch :
1010 description : " Architecture to build for"
1111 required : true
12- checkout_ref :
13- description : " Ref to checkout"
14- required : false
15- default : ' '
1612
1713runs :
1814 using : " composite"
1915 steps :
20- - uses : actions/checkout@v4
21- with :
22- ref : ${{ inputs.checkout_ref || '' }}
2316 - name : Determine build architecture
2417 shell : bash
2518 run : |
Original file line number Diff line number Diff line change @@ -7,17 +7,10 @@ inputs:
77 release_tag :
88 description : " Release tag to build for (value 'unstable' is supported)"
99 required : false
10- checkout_ref :
11- description : " Ref to checkout"
12- required : false
13- default : ' '
1410
1511runs :
1612 using : " composite"
1713 steps :
18- - uses : actions/checkout@v4
19- with :
20- ref : ${{ inputs.checkout_ref || '' }}
2114 - name : Install dependencies
2215 shell : bash
2316 run : |
Original file line number Diff line number Diff line change @@ -9,17 +9,10 @@ inputs:
99 arch :
1010 description : " Architecture to run smoke tests for"
1111 required : true
12- checkout_ref :
13- description : " Ref to checkout"
14- required : false
15- default : ' '
1612
1713runs :
1814 using : " composite"
1915 steps :
20- - uses : actions/checkout@v4
21- with :
22- ref : ${{ inputs.checkout_ref || '' }}
2316 - name : Extract distribution from image
2417 id : extract_dist
2518 shell : bash
Original file line number Diff line number Diff line change 4949 with :
5050 dist : ${{ matrix.dist }}
5151 release_tag : ${{ inputs.release_tag }}
52- checkout_ref : ${{ inputs.release_tag == 'unstable' && 'unstable' || '' }}
5352
5453 build-binary-package :
5554 runs-on : ${{ contains(matrix.arch, 'arm') && 'ubuntu24-arm64-2-8' || 'ubuntu-24.04' }}
7877 dist : ${{ matrix.dist }}
7978 arch : ${{ matrix.arch }}
8079 run_id : ${{ github.run_id }}
81- checkout_ref : ${{ inputs.release_tag == 'unstable' && 'unstable' || '' }}
8280
8381 smoke-test-archs :
8482 runs-on : ubuntu-latest
@@ -115,4 +113,3 @@ jobs:
115113 image : ${{ matrix.image }}
116114 arch : ${{ matrix.arch }}
117115 run_id : ${{ github.run_id }}
118- checkout_ref : ${{ inputs.release_tag == 'unstable' && 'unstable' || '' }}
Original file line number Diff line number Diff line change @@ -64,17 +64,19 @@ jobs:
6464 with :
6565 release_handle : ${{ github.event.inputs.release_handle }}
6666
67- - name : Upload staging packages
67+ - name : Upload packages
6868 id : upload
6969 uses : ./.github/actions/upload-packages
7070 with :
7171 run_id : ${{ steps.parse-handle.outputs.run_id }}
7272 release_type : ${{ github.event.inputs.release_type }}
7373 gh_token : ${{ secrets.GITHUB_TOKEN }}
7474 APT_SIGNING_KEY : ${{ secrets.APT_SIGNING_KEY }}
75- APT_S3_BUCKET : ${{ secrets.APT_S3_BUCKET_STAGING }}
7675 APT_S3_REGION : ${{ secrets.APT_S3_REGION }}
77- APT_S3_IAM_ARN : ${{ secrets.APT_S3_IAM_ARN_STAGING }}
76+ APT_S3_BUCKET : ${{ github.event.inputs.release_type == 'public' && secrets.APT_S3_BUCKET || secrets.APT_S3_BUCKET_STAGING }}
77+ APT_S3_IAM_ARN : ${{ github.event.inputs.release_type == 'internal' && secrets.APT_S3_IAM_ARN_STAGING || '' }}
78+ APT_S3_ACCESS_KEY_ID : ${{ github.event.inputs.release_type == 'public' && secrets.APT_S3_ACCESS_KEY_ID || '' }}
79+ APT_S3_SECRET_ACCESS_KEY : ${{ github.event.inputs.release_type == 'public' && secrets.APT_S3_SECRET_ACCESS_KEY || '' }}
7880
7981 - name : Merge back to release branch
8082 id : merge-back
You can’t perform that action at this time.
0 commit comments