update dev

This commit is contained in:
Jay Sharma
2024-06-14 01:26:36 +05:30
parent c2ecee3b10
commit 1e22f549ca
11 changed files with 74 additions and 73 deletions

View File

@@ -474,8 +474,8 @@ pipelines:
#- chmod 755 ./validation.sh && ./validation.sh default
- echo "make sure that release version file and plan has been added to the release repo"
- source release
- export MANIFEST=$(aws ecr batch-get-image --repository-name weareconnectamerica-web --image-ids imageTag=$VERSION --output json | jq --raw-output --join-output '.images[0].imageManifest')
- aws ecr put-image --repository-name weareconnectamerica-web --image-tag $RELEASE --image-manifest "$MANIFEST" && echo ------ image $VERSION has been retagged as $RELEASE || exit 9
- export MANIFEST=$(aws ecr batch-get-image --repository-name $BITBUCKET_REPO_SLUG --image-ids imageTag=$VERSION --output json | jq --raw-output --join-output '.images[0].imageManifest')
- aws ecr put-image --repository-name $BITBUCKET_REPO_SLUG --image-tag $RELEASE --image-manifest "$MANIFEST" && echo ------ image $VERSION has been retagged as $RELEASE || exit 9
- echo "export VERSION=$RELEASE" >> setenv.sh
- echo "export ENV=stage" >> setenv.sh
artifacts: # define the artifacts to be passed to each future step
@@ -519,7 +519,7 @@ pipelines:
- cp -rf ./common-scripts-web/* . && ls -lrth && export ENV=dev
- chmod 755 ./validation.sh && ./validation.sh default
- export IMAGE="weareconnectamerica-web" && export VERSION=$BITBUCKET_BUILD_NUMBER
- export IMAGE="$BITBUCKET_REPO_SLUG" && export VERSION=$BITBUCKET_BUILD_NUMBER
- aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 716593996126.dkr.ecr.us-east-1.amazonaws.com
- docker build -t ${IMAGE} .
- docker tag ${IMAGE} ${IMAGE}:${VERSION}