Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
image: my-public-image # any image you want
pipelines:
pull-requests:
'**':
- step:
name: Unit Test and Build
caches:
- node
script:
- yarn --no-progress --pure-lockfile
- yarn run type-check
- yarn test --silent
- yarn build
artifacts:
- builds/**
- step:
name: Deploy
script:
- aws s3 sync ./builds/ s3://s3-bucket-name --quiet
- curl 'https://bitbucket.org/!api/2.0/repositories/$REPO_SLUG/$REPO/pullrequests/$PR_NUMBER/comments/' \
-X POST -u $USER:$TOKEN -H 'Content-Type: application/json' \
-d '{"content":{"raw": "https://preview.link/$BRANCH_NAME"}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment