Rename container outputs to {instance}-org-agenda-api

More descriptive naming convention:
- colonelpanic-org-agenda-api
- kat-org-agenda-api

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-28 14:27:58 -08:00
parent 504ec1a105
commit 43e118b3e3
2 changed files with 5 additions and 7 deletions

View File

@@ -68,11 +68,11 @@ echo " dotfiles: $DOTFILES_REV"
# Build container from nixos flake for this instance
# Use --refresh to ensure we're not using stale cached builds
echo "Building container from flake..."
nix build "$NIXOS_DIR#container-$INSTANCE" -o "result-container-$INSTANCE" --refresh
nix build "$NIXOS_DIR#${INSTANCE}-org-agenda-api" -o "result-${INSTANCE}-org-agenda-api" --refresh
# Load into Docker
echo "Loading container into Docker..."
LOADED_IMAGE=$(docker load < "result-container-$INSTANCE" 2>&1 | grep -oP 'Loaded image: \K.*')
LOADED_IMAGE=$(docker load < "result-${INSTANCE}-org-agenda-api" 2>&1 | grep -oP 'Loaded image: \K.*')
echo "Loaded: $LOADED_IMAGE"
# Tag with both versions for full reproducibility
@@ -131,7 +131,7 @@ echo "Deploying $IMAGE_NAME..."
flyctl deploy --image "$IMAGE_NAME" -c "$CONFIG_DIR/fly.toml" "$@"
# Cleanup
rm -f "result-container-$INSTANCE"
rm -f "result-${INSTANCE}-org-agenda-api"
echo ""
echo "Done! Deployed to $FLY_APP"