Skip to content

Commit

Permalink
add minio-operator-sidecar package (#33587)
Browse files Browse the repository at this point in the history
Signed-off-by: Jamon Camisso <[email protected]>
  • Loading branch information
jamonation authored Nov 8, 2024
1 parent 44b7fd7 commit 743e12d
Showing 1 changed file with 27 additions and 12 deletions.
39 changes: 27 additions & 12 deletions minio-operator.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
package:
name: minio-operator
version: 6.0.4
epoch: 1
epoch: 2
description: Minio Operator creates/configures/manages Minio on Kubernetes
copyright:
- license: AGPL-3.0-only

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

pipeline:
- uses: git-checkout
with:
Expand All @@ -30,15 +22,38 @@ pipeline:
modroot: ./cmd/operator
packages: .
output: minio-operator
ldflags: -s -w -X github.com/minio/operator/pkg.ReleaseTag=${{package.full-version}} -X github.com/minio/operator/pkg.Version=${{package.full-version}} -X github.com/minio/operator/pkg.ShortCommitID=$(git rev-parse HEAD)

- uses: strip
ldflags: -w -X github.com/minio/operator/pkg.ReleaseTag=${{package.full-version}} -X github.com/minio/operator/pkg.Version=${{package.full-version}} -X github.com/minio/operator/pkg.ShortCommitID=$(git rev-parse HEAD)

- runs: |
mkdir ${{targets.destdir}}/licenses
cp CREDITS LICENSE ${{targets.destdir}}/licenses/
subpackages:
- name: ${{package.name}}-sidecar
description: sidecar for minio-operator
pipeline:
- uses: go/bump
working-directory: ./sidecar
with:
deps: github.com/golang-jwt/jwt/[email protected]
- uses: go/build
working-directory: ./sidecar
with:
modroot: ./cmd/sidecar
packages: .
output: minio-operator-sidecar
ldflags: -w -X github.com/minio/operator/sidecar/pkg.ReleaseTag=${{package.full-version}} -X github.com/minio/operator/sidecar/pkg.Version=${{package.full-version}} -X github.com/minio/operator/sidecar/pkg.ShortCommitID=$(git rev-parse HEAD)
- runs: |
mkdir ${{targets.contextdir}}/licenses
cp CREDITS LICENSE ${{targets.contextdir}}/licenses/
- name: ${{package.name}}-sidecar-compat
description: compatibility symlinks package for minio-operator-sidecar Dockerfile
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/
ln -sf /usr/bin/minio-operator-sidecar ${{targets.contextdir}}/minio-operator-sidecar
- name: ${{package.name}}-compat
description: compatibility symlinks package for minio-operator Dockerfile
pipeline:
Expand Down

0 comments on commit 743e12d

Please sign in to comment.