Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • R release-cli
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 40
    • Issues 40
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • release-cli
  • Issues
  • #21
Closed
Open
Issue created Mar 18, 2020 by Jaime Martinez@jaime👽Maintainer3 of 4 checklist items completed3/4 checklist items

Distribute release-cli binaries via S3

The following discussion from !13 (merged) should be addressed:

  • @sean_carroll started a discussion: (+2 comments)

    @steveazz about distribution of the releaser binaries:

    • can we put it in the same bucket as the Runner ?
    • is there a development bucket @jaime and I can get access to to build against?

can we put it in the same bucket as the Runner ?

@sean_carroll Ideally no, this should be in its own bucket so each project has the authorization to write to 1 bucket and will reduce the risk factor of a key being leaked.

We usually ask the SRE team to provision the bucket for us for example:

  • gitlab-com/gl-infra/production#1139 (closed)
  • gitlab-com/gl-infra/production#1557 (closed)

You might want to the SRE team beforehand to confirm that this is still the process.

is there a development bucket @jaime and I can get access to build against?

We can use the same bucket that we create above ☝ and then follow the same strategy as GitLab Runner does (if you like it). Where we have a job which will publish the binaries with release-index-generator where we take the name of the branch and create a directory in s3 and then upload the binaries there.

For example:

  • For master branch for the Runner we have https://gitlab-runner-downloads.s3.amazonaws.com/master/index.html
  • For a merge request like gitlab-runner!1915 (merged) is published in https://gitlab-runner-downloads.s3.amazonaws.com/prepare-env-sys-failure/index.html\
  • Stable release for v12.8.0 is available in https://gitlab-runner-downloads.s3.amazonaws.com/v12.8.0/index.html
  • We also provide https://gitlab-runner-downloads.s3.amazonaws.com/latest/index.html which is an alias to the last tag.

So like this, it's clear to users where they have to go if they want a specific version of the binary or a development branch. I think this should be done in a separate merge request/issue since distributing the binaries is a different concern then building/publishing the Docker images. Publishing Docker images will give us the bigest benefit since users would just need to define it in .gitlab-ci.yml under image: and use the image to create the release.

TODOs

  • Provision S3 buckets https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/9681
  • Build binaries for different OSs !17 (merged)
  • Upload the binaries to S3 !76 (merged)

Downloads

The release-cli is available to download for different platforms via S3 starting from v0.6.0.

  • edge - https://release-cli-downloads.s3.amazonaws.com/edge/index.html - released from the default branch
  • latest - https://release-cli-downloads.s3.amazonaws.com/latest/index.html - latest stable release
  • v0.6.0 - https://release-cli-downloads.s3.amazonaws.com/v0.6.0/index.html
Edited Jan 20, 2021 by Jaime Martinez
Assignee
Assign to
Time tracking