-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
30 lines (29 loc) · 912 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
generate MODULE="":
#!/usr/bin/env bash
echo "Generating Modules"
bin_dir=$(mktemp -d)
pushd tools/generate-aws-multi-region
go build -o $bin_dir/generate-aws-multi-region .
popd
$bin_dir/generate-aws-multi-region -dir {{MODULE}} -regionsFile ./modules/aws/regions.json
rm -rf $bin_dir
build-ami name image bucket region="eu-west-1":
#!/usr/bin/env bash
set -euxo pipefail
echo "Building AMI"
pushd ./images
mkdir -p .osbuild/outputs
podman run \
--rm --privileged \
--security-opt label=type:unconfined_t \
-v $(pwd)/.osbuild/config.toml:/config.toml \
-v $(pwd)/.osbuild/outputs:/outputs \
-v /var/lib/containers/storage:/var/lib/containers/storage \
--env AWS_* \
quay.io/centos-bootc/bootc-image-builder:latest \
--type ami \
--aws-ami-name {{name}} \
--aws-bucket {{bucket}} \
--aws-region {{region}} \
{{image}}
popd