micro_blog_repo_fetchers/create_docker_image.sh

11 lines
343 B
Bash
Executable file

#!/bin/sh
set -e
VERSION=$(jq '.version' < package.json | sed 's/"//g')
IMAGE="853019563312.dkr.ecr.eu-central-1.amazonaws.com/micro-blog-fetchers:${VERSION}"
echo Building and deploying micro blog fetchers version: $VERSION;
# # Build the Docker image
docker buildx build --platform linux/amd64,linux/arm64 -t $IMAGE .
docker push $IMAGE