Skip to content

Commit

Permalink
Add bazelisk package.
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Lorenc <dlorenc@chainguard.dev>
  • Loading branch information
dlorenc committed Dec 23, 2023
1 parent 7e78f7c commit e038daa
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions bazelisk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
package:
name: bazelisk
version: 1.19.0
epoch: 0
description: A user-friendly launcher for Bazel.
copyright:
- license: Apache-2.0
dependencies:
runtime:
- ca-certificates-bundle

environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- go

pipeline:
- uses: git-checkout
with:
repository: https://github.com/bazelbuild/bazelisk
expected-commit: c7c6c19799ff408c48bdce6b7557217ad0050b17
tag: v${{package.version}}

- uses: go/build
with:
packages: .
output: bazelisk

- uses: strip

subpackages:
- name: bazelisk-default
pipeline:
- runs: |
# Configure bazelisk as bazel
mkdir -p ${{targets.subpkgdir}}/usr/bin/
ln -sf /usr/bin/bazelisk ${{targets.subpkgdir}}/usr/bin/bazel
dependencies:
runtime:
- bazelisk

update:
enabled: true
github:
identifier: bazelbuild/bazelisk
strip-prefix: v

0 comments on commit e038daa

Please sign in to comment.