Skip to content

Commit

Permalink
General cleanup tasks (#22)
Browse files Browse the repository at this point in the history
* docs: correct GFM syntax for admonitions

* fix: use group() func for last two command groups
  • Loading branch information
hbjydev authored Jun 15, 2024
1 parent fb8906e commit acdf1d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ as part of the Nix store.
There is also an `altf4` user baked into all images that has a list of trusted
SSH keys on it. This user is for administrative purposes.

> ![NOTE]
> [!NOTE]
> On AMIs, the SSH keypair for `altf4` will not be overridden by setting the
> SSH Key Pair option when provisioning the AMI. That option only applies to
> the `root` user.
Expand Down Expand Up @@ -54,7 +54,7 @@ $ just build ecs-node

### Publishing an AMI to EC2

> ![NOTE]
> [!NOTE]
> Using this if you're not a member of ALT-F4 requires some more steps. See
> [`aws/README.md`](./aws/README.md) for more info.
Expand Down
8 changes: 4 additions & 4 deletions ci-build-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit acdf1d8

Please sign in to comment.