Skip to content

Instantly share code, notes, and snippets.

View MeirP-3's full-sized avatar

Meir Pechthalt MeirP-3

View GitHub Profile
@MeirP-3
MeirP-3 / build-and-push.sh
Last active May 29, 2024 09:04
Use kubectl to build and push docker image to ECR
#!/bin/bash
# Build and push a docker image to ECR, with an ad-hoc pod running in kubernetes. no need for local docker installation.
# Prerequisites:
# - tar, gzip, kubectl, aws cli
# - kubectl access to kubernetes cluster
# - aws cli with access to ECR
# Caveats: