Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EFS Purge check to buildspecs. #65

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions source-repo/kas/build.buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ phases:
commands:
- chown -R yoctouser /sstate-cache
- chown -R yoctouser /downloads
- chmod 755 /sstate-cache
- chmod 755 /downloads
- |
if [[ -n "$PURGE_EFS" ]] ; then
echo "Starting EFS purge."
rm -rvf /downloads/*
rm -rvf /sstate-cache/*
fi
build:
commands:
- echo Build started on `date`
Expand Down
6 changes: 6 additions & 0 deletions source-repo/meta-aws-demo/build.buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ phases:
- chown -R yoctouser /downloads
- chmod 755 /sstate-cache
- chmod 755 /downloads
- |
if [[ -n "$PURGE_EFS" ]] ; then
echo "Starting EFS purge."
rm -rvf /downloads/*
rm -rvf /sstate-cache/*
fi
build:
commands:
- git clone https://github.com/aws4embeddedlinux/meta-aws-demos -b v0.0.1
Expand Down
6 changes: 6 additions & 0 deletions source-repo/nxp-imx/build.buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ phases:
- chown -R yoctouser /downloads
- chmod 755 /sstate-cache
- chmod 755 /downloads
- |
if [[ -n "$PURGE_EFS" ]] ; then
echo "Starting EFS purge."
rm -rvf /downloads/*
rm -rvf /sstate-cache/*
fi
build:
commands:
- echo Build started on `date`
Expand Down
6 changes: 6 additions & 0 deletions source-repo/poky-ami/build.buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ phases:
- chown -R yoctouser /downloads
- chmod 755 /sstate-cache
- chmod 755 /downloads
- |
if [[ -n "$PURGE_EFS" ]] ; then
echo "Starting EFS purge."
rm -rvf /downloads/*
rm -rvf /sstate-cache/*
fi
build:
commands:
- echo Build started on `date`
Expand Down
6 changes: 6 additions & 0 deletions source-repo/poky/build.buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ phases:
- chown -R yoctouser /downloads
- chmod 755 /sstate-cache
- chmod 755 /downloads
- |
if [[ -n "$PURGE_EFS" ]] ; then
echo "Starting EFS purge."
rm -rvf /downloads/*
rm -rvf /sstate-cache/*
fi
build:
commands:
- echo Build started on `date`
Expand Down
6 changes: 6 additions & 0 deletions source-repo/renesas/build.buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ phases:
- chmod 755 /sstate-cache
- chmod 755 /downloads
- chmod 755 build.sh
- |
if [[ -n "$PURGE_EFS" ]] ; then
echo "Starting EFS purge."
rm -rvf /downloads/*
rm -rvf /sstate-cache/*
fi
build:
commands:
# BB_ENV_EXTRAWHITE is still used in Dunfell release and was renamed afterwards to BB_ENV_PASSTHROUGH_ADDITIONS
Expand Down
2 changes: 1 addition & 1 deletion test/__snapshots__/embedded-linux-pipeline.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6959,7 +6959,7 @@ def handler(event, context):
"BranchName": "main",
"S3": {
"Bucket": "cdk-hnb659fds-assets-12341234-eu-central-1",
"Key": "7d314040c3b712e8f4a6fe344b865c6d51d6d3470218790947a0f5a9f7e04326.zip",
"Key": "03d16bf861cb657df931bd33404567ac7f02ff927d18a45f5cc7f7cc981bb7ce.zip",
},
},
"RepositoryName": "layer-repo-MyTestStack",
Expand Down
2 changes: 1 addition & 1 deletion test/__snapshots__/source-repo.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ exports[`Pipeline Source Repository Snapshot 1`] = `
"BranchName": "main",
"S3": {
"Bucket": "cdk-hnb659fds-assets-12341234-eu-central-1",
"Key": "7d314040c3b712e8f4a6fe344b865c6d51d6d3470218790947a0f5a9f7e04326.zip",
"Key": "03d16bf861cb657df931bd33404567ac7f02ff927d18a45f5cc7f7cc981bb7ce.zip",
},
},
"RepositoryName": "charlie",
Expand Down
Loading