Skip to content

Commit

Permalink
[doctl] add package (#171)
Browse files Browse the repository at this point in the history
* Add digitalocean cli

* Update readme

* add libc6-compat

* fix doctl

* Update readme

* fix build badge
  • Loading branch information
osterman authored Apr 14, 2019
1 parent 8bab238 commit 6f91f4e
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

[![Cloud Posse][logo]](https://cpco.io/homepage)

# Packages [![TravisCI Build Status](https://travis-ci.org/cloudposse/packages.svg?branch=master)](https://travis-ci.org/cloudposse/packages) [![Codefresh Build Status](https://g.codefresh.io/api/badges/build?repoOwner=cloudposse&repoName=packages&branch=master&pipelineName=packages&accountName=cloudposse&type=cf-1)](https://g.codefresh.io/repositories/cloudposse/packages/builds?filter=trigger:build;branch:master;service:5b234974667ab79287990636~packages) [![Latest Release](https://img.shields.io/github/release/cloudposse/packages.svg)](https://github.com/cloudposse/packages/releases/latest) [![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
# Packages [![TravisCI Build Status](https://travis-ci.org/cloudposse/packages.svg?branch=master)](https://travis-ci.org/cloudposse/packages) [![Codefresh Build Status](https://g.codefresh.io/api/badges/build?repoOwner=cloudposse&repoName=packages&branch=master&pipelineName=apk&accountName=cloudposse&type=cf-1)](https://g.codefresh.io/repositories/cloudposse/packages/builds?filter=trigger:build;branch:master;service:5b234974667ab79287990636~packages) [![Latest Release](https://img.shields.io/github/release/cloudposse/packages.svg)](https://github.com/cloudposse/packages/releases/latest) [![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)


Cloud Posse distribution of awesome apps.
Expand Down Expand Up @@ -199,6 +199,7 @@ cloudflared 2018.8.0 Argo Tunnel client
codefresh 0.11.1 Codefresh CLI
ctop 0.7.1 Top-like interface for container metrics
direnv 2.18.2 Unclutter your .profile
doctl 1.15.0 A command line tool for DigitalOcean services
emailcli 1.0.3 Command line email sending client written in Go.
fargate 0.2.3 CLI for AWS Fargate
fetch 0.3.1 fetch makes it easy to download files, folders, and release assets from a specific git commit, branch, or tag of public andssss
Expand Down
2 changes: 1 addition & 1 deletion README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ badges:
image: "https://travis-ci.org/cloudposse/packages.svg?branch=master"
url: "https://travis-ci.org/cloudposse/packages"
- name: "Codefresh Build Status"
image: "https://g.codefresh.io/api/badges/build?repoOwner=cloudposse&repoName=packages&branch=master&pipelineName=packages&accountName=cloudposse&type=cf-1"
image: "https://g.codefresh.io/api/badges/build?repoOwner=cloudposse&repoName=packages&branch=master&pipelineName=apk&accountName=cloudposse&type=cf-1"
url: "https://g.codefresh.io/repositories/cloudposse/packages/builds?filter=trigger:build;branch:master;service:5b234974667ab79287990636~packages"
- name: "Latest Release"
image: "https://img.shields.io/github/release/cloudposse/packages.svg"
Expand Down
2 changes: 1 addition & 1 deletion apk/templates/APKBUILD.github-binary
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ build() {
# This function is called right after the build stage.
# It should check that the packaged thing is actually working
check() {
make -C ${APK_TMP_DIR} --no-print-directory -s test PATH=$PATH:$srcdir >/dev/null
make -C ${APK_TMP_DIR} --no-print-directory -s test PATH=$PATH:$srcdir HOME=/tmp
}

# This is the packaging stage.
Expand Down
1 change: 1 addition & 0 deletions docs/targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ cloudflared 2018.8.0 Argo Tunnel client
codefresh 0.11.1 Codefresh CLI
ctop 0.7.1 Top-like interface for container metrics
direnv 2.18.2 Unclutter your .profile
doctl 1.15.0 A command line tool for DigitalOcean services
emailcli 1.0.3 Command line email sending client written in Go.
fargate 0.2.3 CLI for AWS Fargate
fetch 0.3.1 fetch makes it easy to download files, folders, and release assets from a specific git commit, branch, or tag of public andssss
Expand Down
2 changes: 1 addition & 1 deletion tasks/Makefile.apk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export APK_BUILD_TEMPLATE ?= APKBUILD.github-binary
export APK_PACKAGES_PATH ?= /tmp/packages
export APK_TMP_DIR := $(realpath $(shell mktemp -d ../../tmp/build.XXXXXX))

apk/prepare:
apk/prepare::
mkdir -p $(APK_PACKAGES_PATH) $(APK_TMP_DIR)
chmod 777 $(APK_PACKAGES_PATH) $(APK_TMP_DIR)
cp -a $(APK_TEMPLATE_PATH)/$(APK_BUILD_TEMPLATE) $(APK_TMP_DIR)/APKBUILD
Expand Down
1 change: 1 addition & 0 deletions vendor/doctl/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A command line tool for DigitalOcean services
1 change: 1 addition & 0 deletions vendor/doctl/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APACHE-2.0
17 changes: 17 additions & 0 deletions vendor/doctl/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

export VENDOR ?= digitalocean
export PACKAGE_REPO_NAME ?= doctl
export APK_BUILD_TEMPLATE ?= APKBUILD.github-binary
export APKBUILD_DEPENDS += libc6-compat musl

include ../../tasks/Makefile.package
include ../../tasks/Makefile.apk


export DOWNLOAD_URL ?= $(PACKAGE_REPO_URL)/releases/download/v$(PACKAGE_VERSION)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-$(OS)-$(ARCH).tar.gz

install:
$(call download_tarball)

test:
$(PACKAGE_EXE) version
1 change: 1 addition & 0 deletions vendor/doctl/RELEASE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
1 change: 1 addition & 0 deletions vendor/doctl/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.15.0

0 comments on commit 6f91f4e

Please sign in to comment.