Sign inSign up

kayako/drone-pripy

By kayako

Updated over 8 years ago

A Drone plugin to build python packages and publish to pripy

Image
0

189

kayako/drone-pripy repository overview

Drone PriPy

A Drone plugin to build python packages and publish to pripy

Usage

pipeline:
  publish:
    image: kayako/drone-pripy:latest
    bucket: private.s3.bucket
    formats: [ gztar, bztar, ztar, tar, zip ]
    use_ci_role: role-with-s3-access
  when:
    event: deployment

The configuration above will

  • assume IAM role arn:aws:iam::<acc-id>:role/ci where <acc-id> is the current AWS account ID. A different account ID can be provided using account_id variable.
  • Build python distributions in gztar, bztar, ztar, tar, and zip formats
  • Push each atrifact to S3 bucket private.s3.bucket

IAM Configuration

  • If the artifacts are to be shipped to a different AWS account then the IAM role of Drone machine requires sts:GetCallerIdentity permission.

Plugin Configuration

Following environment variables can be configured:

VariableDescriptionDefault
use_ci_roleName of the IAM role to assume.ci
account_idAWS account ID if applicablenone
bucketTarget S3 bucket namenone
formatsList of formats to producegztar
regionAWS region of the bucketus-east-1

Tag summary

Content type

Image

Digest

Size

282.3 MB

Last updated

over 8 years ago

docker pull kayako/drone-pripy