Minimal Starter Pipeline
Minimal build-test-deploy Pipeline
code-repo
- repo with the code to build and testartifact
- s3 location to which a built tarball will go
This pipeline
- "performs a build",
- creates a tarball with the build artifact
- uploads the resulting tarball to S3
resources:- name: code-repotype: gitsource:branch: mainprivate_key: ((deploy_key))uri: git@gitlab.com:myorg/myrepo.git- name: artifacttype: s3source:access_key_id: ((aws_access))secret_access_key: ((aws_secret))bucket: trullla-artifactsinitial_path: mypackage/mypackage-1234567890.tar.gzregexp: mypackage/mypackage-(.*).tar.gzregion_name: us-east-1jobs:- name: build-and-packageplan:- get: code-repo- task: buildconfig:platform: linuximage_resource:type: docker-imagesource:repository: alpineparams:PACKAGE_NAME: mypackageinputs:- name: code-repooutputs:- name: tarballrun:path: /bin/shargs:- -c- |set -eTIMESTAMP="$(date +%s)"PACKAGE="${PACKAGE_NAME}-${TIMESTAMP}"cd code-repo# do the building, e.g.mkdir buildcp *.* buildcd -cp -a code-repo/build "${PACKAGE}"tar czf tarball/"${PACKAGE}.tar.gz" "${PACKAGE}"- put: artifactparams:file: tarball/*.tar.gz