Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Bintray Multiple Repositories #48

Closed
0x6e6562 opened this issue Aug 2, 2014 · 2 comments
Closed

Bintray Multiple Repositories #48

0x6e6562 opened this issue Aug 2, 2014 · 2 comments

Comments

@0x6e6562
Copy link
Collaborator

0x6e6562 commented Aug 2, 2014

I'd like to use bintray to publish .debs and OSX packages. Right now goxc is publishing into a generic bintray repo, which works for the OSX packages using homebrew. Bintray can also automatically generate metadata for apt-get, provided you denote the target repo as being of type Debian. So I was wondering if you can configure goxc to publish into multiple repos on bintray?

For reference, my current JSON config looks like this:

{
    "ArtifactsDest": "build",
    "Tasks": [
        "xc", "package", "bintray"
    ],
    "BuildConstraints": "darwin,linux",
    "ConfigVersion": "0.9",
    "TaskSettings" : {
        "bintray" : {
            "package" : "rmq",
            "subject": "relops",
            "repository": "rmq",
            "downloadspage": "bintray.md"
        }
    }
}
@laher
Copy link
Owner

laher commented Aug 2, 2014

You can use 2 configs and 2 invocations - one for each platform.
For example, the main config can become darwin-only, then a second file
'linux.config.json'.
You'd need to invoke this with goxc -c=linux. Run both together using
goxc -c=linux && goxc.

e.g. linux.goxc.json

{
"BuildConstraints": "linux",
"ConfigVersion": "0.9",
"TaskSettings" : {
"bintray" : {
"repository": "rmq-apt",
"downloadspage": "bintray-debs.md"
}
}
}

It will still inherit the rest of the config from the default
configuration file.

Hope that helps.

On Sat, Aug 2, 2014 at 4:02 PM, Ben Hood notifications@github.com wrote:

I'd like to use bintray to publish .debs and OSX packages. Right now goxc
is publishing into a generic bintray repo, which works for the OSX packages
using homebrew. Bintray can also automatically generate metadata for
apt-get, provided you denote the target repo as being of type Debian. So I
was wondering if you can configure goxc to publish into multiple repos on
bintray?

For reference, my current JSON config looks like this:

{
"ArtifactsDest": "build",
"Tasks": [
"xc", "package", "bintray"
],
"BuildConstraints": "darwin,linux",
"ConfigVersion": "0.9",
"TaskSettings" : {
"bintray" : {
"package" : "rmq",
"subject": "relops",
"repository": "rmq",
"downloadspage": "bintray.md"
}
}
}


Reply to this email directly or view it on GitHub
#48.

@0x6e6562
Copy link
Collaborator Author

Sorry for the delay in getting back to you on this question.

So this variant seems to work well - I was wondering if their is a away to further constraint the build to only build and upload debian artifacts?

@laher laher closed this as completed Jul 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants