Created
May 13, 2022 04:23
-
-
Save manakuro/e225a5f4d8de7a251bca182aba63e9f7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Deployment | |
export image := `aws lightsail get-container-images --service-name websocket-lightsail | jq -r '.containerImages[0].image'` | |
build: | |
docker rmi app | |
docker build . -t app | |
push: | |
aws lightsail push-container-image --service-name websocket-lightsail --label app --image app | |
deploy: | |
jq --arg image $(image) '.containers.app.image = $$image' container.tpl.json > ./container.json | |
cat ./container.json | jq | |
aws lightsail create-container-service-deployment --service-name websocket-lightsail --cli-input-json file://$$(pwd)/container.json | |
.PHONY: build push deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment