Skip to content

Instantly share code, notes, and snippets.

View eliasvelazquezdev's full-sized avatar
🤝
Learning, Building and making Community

Elias Velazquez eliasvelazquezdev

🤝
Learning, Building and making Community
View GitHub Profile
@eliasvelazquezdev
eliasvelazquezdev / docker-ecr-build.sh
Last active November 27, 2024 21:29
Shell script that automates the process of ECR login, Docker image building and pushing to an ECR repo
#!/bin/bash
# Function to validate input is not empty
validate_input() {
local input=$1
local field_name=$2
if [ -z "$input" ]; then
echo "Error: $field_name cannot be empty"
exit 1
fi