Skip to content

Instantly share code, notes, and snippets.

@haarchri
Created August 21, 2022 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haarchri/ba7cc6d3d5af1622a492923e0736f13a to your computer and use it in GitHub Desktop.
Save haarchri/ba7cc6d3d5af1622a492923e0736f13a to your computer and use it in GitHub Desktop.
echo "==> Set variables..."
export REGISTRY_URL="${AWS_ACCOUNT}.dkr.ecr.${AWS_REGION}.amazonaws.com/${REPOSITORY_NAME}/${IMAGE_NAME}"
export HELM_EXPERIMENTAL_OCI=1
echo "==> Login to ecr..."
aws ecr get-login-password --region ${AWS_REGION} | docker login --username AWS --password-stdin ${REGISTRY_URL}
echo "==> Create and deploy xpkg..."
cd compositions
kubectl crossplane build configuration --name ${IMAGE_NAME}
kubectl crossplane push configuration ${REGISTRY_URL}:${IMAGE_TAG}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment