Skip to content

Commit fd60091

Browse files
committed
add uaa-cli homebrew/debian
1 parent 787a934 commit fd60091

File tree

2 files changed

+103
-0
lines changed

2 files changed

+103
-0
lines changed

ci/pipeline.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ groups:
5656
- bosh-cli-debian
5757
- bosh-init-homebrew
5858
- credhub-cli-debian
59+
- uaa-cli-homebrew
60+
- uaa-cli-debian
5961
- certstrap-debian
6062
- cf-cli-debian
6163
- jq-debian
@@ -79,6 +81,7 @@ groups:
7981
- gotcha-homebrew
8082
- genesis-homebrew
8183
- bosh2-homebrew
84+
- uaa-cli-homebrew
8285
- bosh-init-homebrew
8386
- name: debian
8487
jobs:
@@ -92,6 +95,7 @@ groups:
9295
- genesis-debian
9396
- bosh-cli-debian
9497
- credhub-cli-debian
98+
- uaa-cli-debian
9599
- certstrap-debian
96100
- cf-cli-debian
97101
- jq-debian
@@ -817,6 +821,78 @@ jobs:
817821
GPG_PUBLIC_KEY: (( grab meta.gpg.public_key ))
818822
GPG_PRIVATE_KEY: (( grab meta.gpg.private_key ))
819823

824+
- name: uaa-cli-debian
825+
public: true
826+
serial_groups: [apt]
827+
plan:
828+
- aggregate:
829+
- get: homebrew
830+
resource: homebrew
831+
- get: uaa-cli
832+
resource: uaa-cli
833+
trigger: true
834+
- task: create-debian
835+
config:
836+
platform: linux
837+
image_resource: (( grab meta.image ))
838+
inputs:
839+
- name: homebrew
840+
- name: uaa-cli
841+
path: recipe
842+
run:
843+
path: "homebrew/ci/scripts/create-debian-pkg-from-binary.sh"
844+
params:
845+
DEBUG: 1
846+
REPO_ROOT: homebrew
847+
REPO_OUT: pushme
848+
IN_BINARY: "uaa-linux-amd64"
849+
OUT_BINARY: uaa
850+
NAME: uaa-cli
851+
LICENSE: Apache-2.0
852+
DESCRIPTION: CLI to UAA
853+
URL: https://github.com/cloudfoundry-incubator/uaa-cli
854+
MAINTAINERS: https://github.com/cloudfoundry-incubator/uaa-cli/graphs/contributors
855+
VENDOR: CloudFoundry.org Foundation, Inc.
856+
RELEASE_BUCKET: (( grab meta.debian.s3_bucket ))
857+
AWS_ACCESS_KEY: (( grab meta.debian.aws_access_key ))
858+
AWS_SECRET_KEY: (( grab meta.debian.aws_secret_key ))
859+
GPG_ID: (( grab meta.gpg.id ))
860+
GPG_PUBLIC_KEY: (( grab meta.gpg.public_key ))
861+
GPG_PRIVATE_KEY: (( grab meta.gpg.private_key ))
862+
863+
- name: uaa-cli-homebrew
864+
public: true
865+
serial: true
866+
plan:
867+
- aggregate:
868+
- get: homebrew
869+
resource: homebrew
870+
- get: uaa-cli
871+
resource: uaa-cli
872+
trigger: true
873+
- task: update-homebrew
874+
config:
875+
platform: linux
876+
image_resource: (( grab meta.image ))
877+
inputs:
878+
- name: homebrew
879+
- name: uaa-cli
880+
path: recipe
881+
outputs:
882+
- name: pushme
883+
run:
884+
path: "homebrew/ci/scripts/update-homebrew.sh"
885+
args:
886+
- uaa-cli.rb
887+
params:
888+
REPO_ROOT: homebrew
889+
REPO_OUT: pushme
890+
BINARY: "uaa-darwin-amd64"
891+
- put: homebrew
892+
params:
893+
repository: pushme/homebrew
894+
rebase: true
895+
820896
- name: certstrap-debian
821897
public: true
822898
serial_groups: [apt]
@@ -1486,6 +1562,13 @@ resources:
14861562
repository: credhub-cli
14871563
access_token: (( grab meta.github.access_token ))
14881564

1565+
- name: uaa-cli
1566+
type: github-release
1567+
source:
1568+
user: starkandwayne
1569+
repository: uaa-cli-releases
1570+
access_token: (( grab meta.github.access_token ))
1571+
14891572
- name: certstrap
14901573
type: github-release
14911574
source:

uaa-cli.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
require "FileUtils"
2+
3+
class UaaCli < Formula
4+
homepage "https://github.com/cloudfoundry-incubator/uaa-cli"
5+
6+
v = "v8.0.12" # CI Managed
7+
url "https://github.com/starkandwayne/uaa-cli-releases/releases/download/#{v}/uaa-darwin-amd64"
8+
version v
9+
sha256 "233e9a2ff69820d0c8fe637ef1a069c3336706225c3bcac77cf3cf47d70cdaed" # CI Managed
10+
11+
def install
12+
FileUtils.mv("uaa-darwin-amd64", "uaa")
13+
bin.install "uaa"
14+
end
15+
16+
test do
17+
system "#{bin}/uaa", "-h"
18+
end
19+
end
20+

0 commit comments

Comments
 (0)