Skip to content

Commit

Permalink
[workflow] Download bpf objects for veristat from S3 bucket
Browse files Browse the repository at this point in the history
Use bpf objects from S3 bucker for Veristat validation and comparison

Signed-off-by: Nikolay Yurin <[email protected]>
  • Loading branch information
yurinnick committed Aug 4, 2023
1 parent 93198bf commit 88b1030
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,10 @@ jobs:
REPO_ROOT: ${{ github.workspace }}
REPO_PATH: ""
KBUILD_OUTPUT: kbuild-output/
permissions:
id-token: write
contents: read
environment: aws-openid-auth
steps:
- name: Setup environment variables
run: |
Expand All @@ -391,6 +395,23 @@ jobs:
# zstd is installed by default in the runner images.
run: zstd -d -T0 vmlinux-${{ env.arch_and_tool }}.tar.zst --stdout | tar -xf -

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: ${{ vars.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
role-session-name: github-action-bpf-ci

- name: Download BPF objects
run: |
set -eux
if [ -n "$AWS_ROLE_ARN" ]; then
mkdir ./bpf_objects
aws s3 sync s3://veristat-bpf-binaries ./bpf_objects
fi
env:
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}

- name: Prepare rootfs
uses: libbpf/ci/prepare-rootfs@main
with:
Expand Down

0 comments on commit 88b1030

Please sign in to comment.