Skip to content

Commit

Permalink
Deployment is hard every time
Browse files Browse the repository at this point in the history
  • Loading branch information
jessitron committed Aug 25, 2024
1 parent d2d20f7 commit ce49ac3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deploy
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -x

me=$0

VERSION_NUMBER=3
VERSION_NUMBER=4
export IMAGE_NAME=jessitron/hny-tricks
export IMAGE_TAG=hny-tricks-$VERSION_NUMBER
export IMAGE_REPO=414852377253.dkr.ecr.us-east-1.amazonaws.com
Expand All @@ -16,6 +16,10 @@ export IMAGE_REPO=414852377253.dkr.ecr.us-east-1.amazonaws.com
docker build --platform linux/amd64 -t $IMAGE_REPO/$IMAGE_NAME:$IMAGE_TAG .
docker push $IMAGE_REPO/$IMAGE_NAME:$IMAGE_TAG

if [ "$?" -ne 0 ]; then
echo "Push failed. You probably need to 'awslogin' and then 'dockerlogin'"
fi

cat deployment/k8s.yaml \
| sed 's/IMAGE_TAG/'$IMAGE_TAG'/g' \
| kubectl apply -f -
Expand Down
4 changes: 4 additions & 0 deletions deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ and then there's "aws for pwd" which confirms the region

`aws configure get region`

be in the right k8s context

`k config use-context pixie-lou`

### Build an image

A directory up from here:
Expand Down

0 comments on commit ce49ac3

Please sign in to comment.