Problems integrating Bitbucket pipelines with Heroku

Asked

Viewed 14 times

-1

I have a problem integrating pipelines of bitbucket with Heroku, I set the file normally, and when it goes to part of the build in Heroku it appears this message:

-----> Building on the Heroku-20 stack
!     Push rejected, Failed decompressing source code.
Source archive detected as: Zip archive data, at least v2.0 to extract
More information: https://devcenter.heroku.com/articles/platform-api-deploying-slugs#create-slug-archive

Error stack inserir a descrição da imagem aqui

My pipeline is like this

image: composer:2.0


pipelines:
  default:
    - parallel:
        - step:
            name: Deploy
            script:
            - zip -r slug.zip .
            - pipe: atlassian/heroku-deploy:0.1.1
              variables:
                HEROKU_API_KEY: $HEROKU_API_KEY
                HEROKU_APP_NAME: $HEROKU_APP_NAME
                ZIP_FILE: 'slug.zip'

I tried through tar and I couldn’t either

1 answer

0

I found the best way to compress the source with compatibility, just compress with git

script: 
       - git archive --format=tar.gz master -o application.tar.gz 

So it worked

Browser other questions tagged

You are not signed in. Login or sign up in order to post.