Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support replacements #247

Merged
merged 2 commits into from
Sep 12, 2021
Merged

feat: support replacements #247

merged 2 commits into from
Sep 12, 2021

Conversation

suzuki-shunsuke
Copy link
Member

@suzuki-shunsuke suzuki-shunsuke commented Sep 12, 2021

e.g.

inline_registry:
  packages:
  - name: accurics/terrascan
    type: github_release
    repo_owner: accurics
    repo_name: terrascan
    asset: 'terrascan_{{trimPrefix "v" .Package.Version}}_{{title .OS}}_{{.Replacements.Arch}}.tar.gz'
    files:
    - name: terrascan
    replacements:
      amd64: x86_64
  - name: fujiwara/lambroll
    type: github_release
    repo_owner: fujiwara
    repo_name: lambroll
    archive_type: tar.gz
    archive_type_overrides:
    - goos: darwin
      archive_type: zip
    asset: 'lambroll_{{.Package.Version}}_{{.OS}}_{{.Arch}}.{{.PackageInfo.GetArchiveType}}'
    files:
    - name: lambroll
      src: lambroll_{{.Package.Version}}_{{.OS}}_{{.Arch}}/lambroll

packages:
- name: accurics/terrascan
  registry: inline
  version: v1.9.0

- name: fujiwara/lambroll
  registry: inline
  version: v0.11.8

@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Sep 12, 2021
@suzuki-shunsuke suzuki-shunsuke linked an issue Sep 12, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support goreleaser compatible replacements
1 participant