Skip to content

Commit

Permalink
🎨 add publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasParistech committed Aug 29, 2023
1 parent e703dd9 commit e5e11aa
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions instant_ngp_3dml/scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

ROOT_DIR=$(dirname ${0})
cd $ROOT_DIR/../..

AWS_REGISTRY=743499434080.dkr.ecr.eu-west-1.amazonaws.com
VERSION=v2.0.0
PROJECT_NAME=3dml-instant-ngp

aws ecr get-login-password --region eu-west-1 | docker login --username AWS --password-stdin $AWS_REGISTRY

DOCKER_BUILDKIT=1 docker build --build-arg GIT_ACCESS_TOKEN=$GIT_ACCESS_TOKEN -t $PROJECT_NAME:$VERSION -f .devcontainer/Dockerfile .

if ! [ $? -eq 0 ]; then
echo "Failed to build docker"
exit $?
fi

docker tag $PROJECT_NAME:$VERSION $AWS_REGISTRY/$PROJECT_NAME:$VERSION
docker push $AWS_REGISTRY/$PROJECT_NAME:$VERSION

0 comments on commit e5e11aa

Please sign in to comment.