Skip to content

Instantly share code, notes, and snippets.

@jjtroberts
Created October 12, 2022 20:26
Show Gist options
  • Save jjtroberts/ce47b7de31711ae01e78ddd445227fdd to your computer and use it in GitHub Desktop.
Save jjtroberts/ce47b7de31711ae01e78ddd445227fdd to your computer and use it in GitHub Desktop.
Bitbucket Pipeline - Create Build Artifact
image: node:6.15.0
pipelines:
default:
- step:
caches:
- node
script:
- apt-get update
- apt-get install -y zip curl
- npm install
- npm install -g bower gulp node-sass
- bower install --allow-root
- gulp --production
- rm -rf node_modules bower_components
- zip -r ../output.zip .
- curl -X POST "https://${BB_AUTH_STRING}@api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"../output.zip"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment