maxkoryukov / python-pipelines-deploy

Simple deployment script from Bitbucket Pipelines to Bitbucket Downloads

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-pipelines-deploy

Python script which provides the deploy-functionality for Bitbucket's Pipelines

HOWTO

  1. Add PipelinesDeployBitbucket.py to the root of your repo (there is no PYPI package.. see #2 )
  2. Modify your bitbucket-pipelines.yml
---
image: python:2.7
pipelines:
  default:
    - step:
        script:
          - pip install -r requirements.txt -t libs -q

          - pip --version
          - pytest --version

          - flake8
  tags:
    '**':
      - step:
          script:
            - pip --version
            - pip install -r requirements-dev.txt -q
            - ./PipelinesDeployBitbucket.py		# 1 REQUIRED! BitBucket won't start deploy automatically

      # 2: DEPLOY settings
      - deploy:
          - provider: bitbucket-downloads
            file:
              name-for-bitbucket-downloads.py: RealFileName/On/Fs/myscript.py
              otherfile: otherfile
...

About

Simple deployment script from Bitbucket Pipelines to Bitbucket Downloads

License:MIT License


Languages

Language:Python 100.0%