Coder Social home page Coder Social logo

Comments (5)

hollisc avatar hollisc commented on July 25, 2024

@oiricaud, could you provide more information on this particular issue on how to reproduce this issue or when this error was seen. Thanks.

from devops-demo-pipelines.

oiricaud avatar oiricaud commented on July 25, 2024

Upon using the ./run.sh script and creating a new release such as:

**************************************************************************

🦄 Do you want to
    1) Set up environment, containerzied pipelines and release them to a registry?
    2) Add, commit and push your latest changes to github?
    3) Create a git release for your pipelines?
    4) Upload an asset to a git release version?
    5) Update the Kabanero CR custom resource with a release?
    6) Add a stable pipeline release version to the Kabanero custom resource?
    enter a number > 4
**************************************************************************

================ BEGIN UPLOADING ASSET ====================================

**************************************************************************

Upload asset to what version? i.e v1.0 : v1.26
curl: (3) URL using bad/illegal format or missing URL

However... the file does indeed get uploaded

Upload asset to what version? i.e v1.0 : v1.26
curl: (3) URL using bad/illegal format or missing URL
{"url":"https://api.github.com/repos/ibm-cloud-architecture/devops-demo-kabanero-pipelines/releases/assets/21289031","id":21289031,"node_id":"MDEyOlJlbGVhc2VBc3NldDIxMjg5MDMx","name":"default-kabanero-pipelines.tar.gz","label":"","uploader":{"login":"oiricaud","id":11867058,"node_id":"MDQ6VXNlcjExODY3MDU4","avatar_url":"https://avatars2.githubusercontent.com/u/11867058?v=4","gravatar_id":"","url":"https://api.github.com/users/oiricaud","html_url":"https://github.com/oiricaud","followers_url":"https://api.github.com/users/oiricaud/followers","following_url":"https://api.github.com/users/oiricaud/following{/other_user}","gists_url":"https://api.github.com/users/oiricaud/gists{/gist_id}","starred_url":"https://api.github.com/users/oiricaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oiricaud/subscriptions","organizations_url":"https://api.github.com/users/oiricaud/orgs","repos_url":"https://api.github.com/users/oiricaud/repos","events_url":"https://api.github.com/users/oiricaud/events{/privacy}","received_events_url":"https://api.github.com/users/oiricaud/received_events","type":"User","site_admin":false},"content_type":"application/octet-stream","state":"uploaded","size":8920,"download_count":0,"created_at":"2020-06-02T13:43:47Z","updated_at":"2020-06-02T13:43:48Z","browser_download_url":"https://github.com/ibm-cloud-architecture/devops-demo-kabanero-pipelines/releases/download/v1.26/default-kabanero-pipelines.tar.gz"}**************************************************************************

from devops-demo-pipelines.

oiricaud avatar oiricaud commented on July 25, 2024

This issue has been resolved by replacing the following line

curl "$GITHUB_OAUTH_BASIC" --data-binary @"$filename" -H "Authorization: token $TOKEN" -H "Content-Type: application/octet-stream" "$GH_ASSET"

with the following:

curl --data-binary @$filename -H "Authorization: token $TOKEN" -H "Content-Type: $(file -b --mime-type $filename)" "$GH_ASSET"

from devops-demo-pipelines.

oiricaud avatar oiricaud commented on July 25, 2024

View the pull request here #32

from devops-demo-pipelines.

hollisc avatar hollisc commented on July 25, 2024

Merged PR.

from devops-demo-pipelines.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.