Skip to content

Commit

Permalink
[SVC-3123] feat: upload binaries to an other Object Storage as well
Browse files Browse the repository at this point in the history
  • Loading branch information
nagypeterjob committed Oct 17, 2024
1 parent 089e8e7 commit 137b60a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,36 @@ builds:
archives:
# GitHub release should contain the raw binaries (no zip or tar.gz)
- format: binary
id: default
# Name format should match the curl install script
name_template: >-
{{ .ProjectName }}-
{{- title .Os }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
- format: binary
id: s3
name_template: "{{ .ProjectName }}-cli-{{ .Os }}-{{ .Arch }}-v{{ .Tag }}"

blobs:
- provider: gs
bucket: bitrise-cli-releases-prod
folder: /{{ .Tag }}
ids:
- default
- provider: s3
bucket: bitrise-cli-releases-prod
folder: /
ids:
- s3

release:
github:
owner: bitrise-io
name: bitrise
ids:
- default
draft: true
mode: replace
footer: |
Expand Down
3 changes: 3 additions & 0 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ workflows:
description: Creates Linux and Darwin binaries, then publishes a GitHub release
envs:
- GITHUB_TOKEN: $GIT_BOT_USER_ACCESS_TOKEN # Goreleaser expects this env var
- AWS_ENDPOINT_URL: $AWS_ENDPOINT_PROD
- AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID_PROD
- AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY_PROD
steps:
- script:
title: Fetch GCS bucket credentials
Expand Down

0 comments on commit 137b60a

Please sign in to comment.