Skip to content

Commit 5293c69

Browse files
committed
chore: update deb overlay CI with our infra
1 parent 5d2d86c commit 5293c69

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

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

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,26 @@ on:
44
workflow_dispatch:
55
inputs:
66
config:
7-
description: 'Path to the YAML configuration file'
7+
description: "Path to the YAML configuration file"
88
required: true
99
type: string
1010

11+
permissions:
12+
contents: read
13+
id-token: write
14+
1115
jobs:
1216
build:
1317
strategy:
1418
matrix:
15-
arch: [amd64, arm64]
16-
runs-on: [self-hosted, qcom-u2404, "${{ matrix.arch }}"]
19+
arch: [arm64]
20+
runs-on: debian-linux-images--linux-arm64-8core-32gb
1721
env:
1822
CONFIG: ${{ inputs.config }}
23+
environment: staging
1924
container:
20-
image: public.ecr.aws/debian/debian:trixie
21-
options: --privileged # Required for chroot creation
25+
image: debian:trixie
26+
options: --privileged # Required for chroot creation
2227
steps:
2328
- name: Update OS packages
2429
run: |
@@ -35,7 +40,7 @@ jobs:
3540
set -ux
3641
DEBIAN_FRONTEND=noninteractive \
3742
apt -y install --no-install-recommends \
38-
sudo sbuild gnupg debootstrap debian-archive-keyring schroot
43+
sudo sbuild gnupg debootstrap debian-archive-keyring schroot awscli
3944
4045
- name: Set up sbuild user
4146
run: |
@@ -91,8 +96,16 @@ jobs:
9196
sudo -u builder python3 scripts/build-deb.py \
9297
--config "$CONFIG" --output-dir upload
9398
94-
- name: Upload as private artifacts
95-
uses: qualcomm-linux/upload-private-artifact-action@v1
99+
- name: Authenticate AWS
100+
uses: aws-actions/configure-aws-credentials@v4
96101
with:
97-
path: upload
102+
aws-region: "us-east-1"
103+
role-to-assume: ${{ secrets.AWS_IAM_ROLE }}
104+
role-session-name: GHA_DebianImages_via_FederatedOIDC
105+
mask-aws-account-id: true
98106

107+
- name: upload to S3
108+
run: |
109+
for file in upload/*.deb; do
110+
aws s3 cp "$file" "s3://${{ secrets.AWS_BUKET }}/build-deb/"
111+
done

0 commit comments

Comments
 (0)