22 Feb 2018, 13:57

Rubocop and Deploy With Bitbucket Pipelines

Share

bitbucket-pipelines.yml

pipelines:
  branches:
    master:
      - step:
          name: rubocop test
          image: ruby:2.3.6
          script:
            - gem install rubocop
            - rubocop
      - step:
          deployment: production
          image: python:3.6
          name: copy archive to s3 bucket
          caches:
            - pip
          script:
            - pip3 install -U awscli
            - git archive HEAD -o my-app.tar.gz
            - aws s3 cp my-app.tar.gz s3://my-bucket

reference

comments powered by Disqus