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

General cleanup tasks #22

Merged
merged 2 commits into from
Jun 15, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
fix: use group() func for last two command groups
hbjydev committed Jun 15, 2024
commit 882cd1753be1d41a3ce964ea97d8c5ec1387a0e5
8 changes: 4 additions & 4 deletions ci-build-publish.sh
Original file line number Diff line number Diff line change
@@ -67,15 +67,15 @@ echo "New snapshot is $snapshot_id."
ciout snapshot_id "$snapshot_id"
endgroup

echo "::group::Registering new AMI"
group "Registering new AMI"
ami_id=$(aws ec2 register-image --architecture x86_64 --ena-support --name "$image_name" --description "A NixOS AMI: {{profile}}" --block-device-mappings "DeviceName=/dev/sda1,Ebs={SnapshotId=$snapshot_id}" --root-device-name /dev/sda1 | jq .ImageId)
echo "AMI is registered: $ami_id"
ciout ami_id "$ami_id"
echo "::endgroup::"
endgroup

echo "::group::Cleaning up image VHD from bucket"
group "Cleaning up image VHD from bucket"
aws s3 rm "s3://$bucket/$image_name.vhd"
echo "::endgroup::"
endgroup

cisum "# :rocket: AMI build successful"
cisum ""