Skip to content

Commit

Permalink
feat: #661 Update BB pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
mkleszcz committed Sep 19, 2024
1 parent 8aef3a9 commit 9bc7e83
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions bitbucket-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,11 @@ definitions:
depth: full
script:
- |
response=$(curl -s -w "%{http_code}" -o response_body.txt -X POST "${SB_DEPLOY_TRIGGER_URL}?secret=$(echo -n '${SB_DEPLOY_TRIGGER_SECRET}' | jq -sRr @uri)" \
-H "Content-Type: application/json" \
-d '{
"referenceName": "'"${BITBUCKET_COMMIT}"'",
"deployTarget": "'"${BITBUCKET_DEPLOYMENT_ENVIRONMENT}"'"
}')
status_code=$(tail -n1 <<< "$response")
if [ "$status_code" -ne 200 ]; then
echo "Deployment trigger failed with status code $status_code"
cat response_body.txt
exit 1
fi
app_version=$(git describe --tags --first-parent --abbrev=11 --long --dirty --always)
echo "VERSION=${app_version}" >> .env
artifact_name="${SB_DEPLOY_ENVIRONMENT_NAME}-entrypoint"
zip -r -q "${artifact_name}.zip" .
aws s3 cp "${artifact_name}.zip" "s3://${{ inputs.artifacts-s3-bucket }}/${artifact_name}"
- step: &webappTest
name: 'webapp: Lint & test'
Expand Down Expand Up @@ -509,8 +502,6 @@ definitions:
pipelines:
default:
- parallel:
- step: *codecommitPush

- step: *webappTest
- step: *webappBuild
- step: *webappCoreTest
Expand All @@ -531,7 +522,6 @@ pipelines:

- step: *infraCoreBuild
- step: *infraSharedBuild
- step: *infraFunctionsBuild

- step: *internalDocsBuild
- step: *internalStatusDashboardBuild
Expand Down Expand Up @@ -569,7 +559,6 @@ pipelines:

- step: *infraCoreBuild
- step: *infraSharedBuild
- step: *infraFunctionsBuild

- step: *internalDocsBuild
- step: *internalStatusDashboardBuild
Expand Down

0 comments on commit 9bc7e83

Please sign in to comment.