Skip to content

Commit

Permalink
Add EFS Purge check to buildspecs.
Browse files Browse the repository at this point in the history
  • Loading branch information
nateglims committed Jan 9, 2024
1 parent 45f22e4 commit b1fe914
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 2 deletions.
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

0 comments on commit b1fe914

Please sign in to comment.