Add build-boot-with-aws-batch and build-debian-with-aws-batch

This commit is contained in:
Johan Gunnarsson 2022-08-01 19:52:30 +02:00
parent 0f04976ae2
commit 838085cbae
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#!/bin/sh
# Build one boot image as part of a AWS Batch array job
ARRAY_S3_URI_BASE="${1}" # For example "s3://bucket/folder"
ARTIFACTS_S3_URI_BASE="${2}" # For example "s3://bucket/folder"
set -ex
# Download parameters for this run
aws s3 cp "${ARRAY_S3_URI_BASE}/${AWS_BATCH_JOB_ARRAY_INDEX}" args
# Source parameters
. args
build-boot "${BOARD_ID}" "${CHIP_ID}" "${DEFCONFIG}" "${TUPLE}"
# Upload artifacts from this run
aws s3 cp "${ARTIFACTS_DIR:-/artifacts}" "${ARTIFACTS_S3_URI_BASE}" --recursive

View File

@ -0,0 +1,18 @@
#!/bin/sh
# Build one debian image as part of a AWS Batch array job
ARRAY_S3_URI_BASE="${1}" # For example "s3://bucket/folder"
ARTIFACTS_S3_URI_BASE="${2}" # For example "s3://bucket/folder"
set -ex
# Download parameters for this run
aws s3 cp "${ARRAY_S3_URI_BASE}/${AWS_BATCH_JOB_ARRAY_INDEX}" args
# Source parameters
. args
build-debian "${OS}" "${ARCH}" "${DIST}"
# Upload artifacts from this run
aws s3 cp "${ARTIFACTS_DIR:-/artifacts}" "${ARTIFACTS_S3_URI_BASE}" --recursive