Skip to content

Commit

Permalink
Add guac 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 May 24, 2023
1 parent 16d9209 commit 96e8e9d
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 0 deletions.
85 changes: 85 additions & 0 deletions guac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
package:
name: guac
version: 0.1.0
epoch: 0
description: Autoscaling components for Kubernetes
copyright:
- license: Apache-2.0

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

pipeline:
- uses: git-checkout
with:
repository: https://github.com/guacsec/guac
tag: v${{package.version}}
expected-commit: 01984331b7337492b833d6b96ddb020d56654e39

- uses: go/build
with:
ldflags: -X $github.com/guacsec/guac/pkg/.Version=${{package.version}}
packages: ./cmd/guaccollect
output: guaccollect

- uses: go/build
with:
ldflags: -X $github.com/guacsec/guac/pkg/.Version=${{package.version}}
packages: ./cmd/guacingest
output: guacingest

- uses: go/build
with:
ldflags: -X $github.com/guacsec/guac/pkg/.Version=${{package.version}}
packages: ./cmd/guacone
output: guacone

- uses: go/build
with:
ldflags: -X $github.com/guacsec/guac/pkg/.Version=${{package.version}}
packages: ./cmd/guacgql
output: guacgql

- uses: go/build
with:
ldflags: -X $github.com/guacsec/guac/pkg/.Version=${{package.version}}
packages: ./cmd/guaccsub
output: guaccsub

subpackages:
- name: guacingest
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/bin
mv ${{targets.destdir}}/usr/bin/guacingest ${{targets.subpkgdir}}/usr/bin
- name: guacone
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/bin
mv ${{targets.destdir}}/usr/bin/guacone ${{targets.subpkgdir}}/usr/bin
- name: guacgql
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/bin
mv ${{targets.destdir}}/usr/bin/guacgql ${{targets.subpkgdir}}/usr/bin
- name: guaccsub
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/bin
mv ${{targets.destdir}}/usr/bin/guaccsub ${{targets.subpkgdir}}/usr/bin
update:
enabled: true
github:
identifier: guacsec/guac
strip-prefix: v
use-tag: true
tag-filter: v
1 change: 1 addition & 0 deletions packages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -686,3 +686,4 @@ dask-gateway
http-echo
src
prometheus-redis-exporter
guac

0 comments on commit 96e8e9d

Please sign in to comment.