Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tferrari92 committed Mar 7, 2024
1 parent b8c940d commit b1dea84
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 87 deletions.
1 change: 0 additions & 1 deletion application-code/my-app/frontend/mkdocs.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
site_name: my-app-frontend Documentation
nav:
- Home: index.md
- API: api.md
- Deployment: deployment.md
theme:
name: 'material'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
site_name: ${{ values.system }}-${{ values.service }} Documentation
nav:
- Home: index.md
- API: api.md
- Deployment: deployment.md
theme:
name: 'material'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
service:
title: Name
type: string
description: Unique name of the new service. Example -> 'backend'
description: Unique name of the new service. Example -> 'frontend'
ui:field: EntityNamePicker
description:
title: Description
Expand Down
84 changes: 0 additions & 84 deletions initial-setup.sh
Original file line number Diff line number Diff line change
@@ -1,96 +1,12 @@
#!/bin/bash

# # Prompt user for their full name and read input
# echo -n "Please enter your full name: "
# read -r full_name

# # Extract the first name from the full name
# first_name=$(echo "$full_name" | awk '{print $1}')

# # Function to print text gradually
# print_gradually() {
# text=$1
# delay=${2:-0.03} # Default delay is 0.03
# for (( i=0; i<${#text}; i++ )); do
# echo -n "${text:$i:1}"
# sleep "$delay"
# done
# }

# # Function to print text gradually fast
# print_gradually_fast() {
# text=$1
# print_gradually "$text" 0.005
# }

# # Prompt the user with options
# prompt_with_options() {
# message=$1
# options=("${@:2}") # Get all arguments starting from the second
# print_gradually "$message\n"
# for i in "${!options[@]}"; do
# echo "$((i+1)). ${options[i]}"
# done

# while true; do
# echo -n "Enter your choice: "
# read -r choice
# if [[ "$choice" =~ ^[0-9]+$ ]] && (( choice >= 1 && choice <= ${#options[@]} )); then
# echo "${options[choice-1]}"
# return
# else
# echo "Invalid input. Please enter the number corresponding to your choice."
# fi
# done
# }

# # Define the message and options
# message="Thank you, $first_name! Welcome to Automate All The Things! Are you excited?"
# options=("Yes" "YEEEAAAAHHHHHH!!!!!")

# # Prompt the user and get their choice
# user_choice=$(prompt_with_options "$message" "${options[@]}")

# # Process the user's choice
# if [[ $user_choice == "Yes" ]]; then
# print_gradually "That's great!\n"
# else
# print_gradually "WOOOOHOOOOOOOO!!!! DAMN RIGHT!!\n"
# fi

# # Function to check that input is only alphanumeric + "-" + "_"
# check_if_valid() {
# input_string=$1
# while ! [[ $input_string =~ ^[a-zA-Z0-9_-]+$ ]]; do
# print_gradually "This value can only contain alphanumeric characters, hyphens(-) and underscores(_).\nPlease provide a valid name: "
# read -r input_string
# done
# echo "$input_string"
# }

# # Get app name
# echo -n "Alright, let's get the necessary details. What will be the name of your app?: "
# read -r app_name
# app_name=$(check_if_valid "$app_name")

# Get GitHub username
echo -n "What's your GitHub username?: "
read -r github_username

# # Get AWS region
# echo -n "Got it! In what AWS region will you be deploying your resources? (e.g., 'us-east-2'): "
# read -r aws_region

# Get DockerHub username
echo -n "What's your DockerHub username?: "
read -r dockerhub_username

# # Get user email
# echo -n "Perfect! Last thing... You'll receive just one pipeline notification through email. Please provide me with the email you used for your Azure DevOps account: "
# read -r user_email

# print_gradually "Give me a sec... "

# Function that looks for strings AATT_GITHUB_USERNAME and AATT_DOCKERHUB_USERNAME in a files /backstage/my-backstage/app-config.yaml and /k8s-manifests/my-app/backend/deployment and replaces them with the value of github_username and dockerhub_username
replace_string_in_file() {
file_path=$1
Expand Down

0 comments on commit b1dea84

Please sign in to comment.