Created
August 21, 2022 12:41
-
-
Save haarchri/ba7cc6d3d5af1622a492923e0736f13a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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