Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .drone.starlark
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def main(ctx):
linux('arm'),
linux('arm64'),
linux('amd64'),
linux('ppc64le'),
windows('1903'),
windows('1809'),
]
Expand Down Expand Up @@ -127,4 +128,4 @@ def manifest():
'trigger': {
'event': ['push', 'tag']
}
}
}
34 changes: 34 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,39 @@ steps:
- push
- tag

---
kind: pipeline
type: docker
name: linux-ppc64le

platform:
arch: ppc64le
os: linux

steps:
- name: build
image: golang:1.10
commands:
- cd posix
- tar -xf fixtures.tar -C /
- go test -v

- name: publish
image: plugins/docker:18
settings:
dockerfile: docker/Dockerfile.linux.ppc64le
repo: drone/git
auto_tag: "true"
auto_tag_suffix: linux-ppc64le
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
- push
- tag

---
kind: pipeline
type: docker
Expand Down Expand Up @@ -221,6 +254,7 @@ depends_on:
- linux-amd64
- linux-arm64
- linux-arm
- linux-ppc64le
- windows-1909-amd64
- windows-1903-amd64
- windows-1809-amd64
5 changes: 5 additions & 0 deletions docker/Dockerfile.linux.ppc64le
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM ppc64le/alpine:3.14
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli sudo

ADD posix/* /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/clone"]
7 changes: 6 additions & 1 deletion docker/manifest.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ manifests:
platform:
architecture: amd64
os: linux
-
image: drone/git:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-ppc64le
platform:
architecture: ppc64le
os: linux
-
image: drone/git:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
platform:
Expand Down Expand Up @@ -52,4 +57,4 @@ manifests:
platform:
architecture: amd64
os: windows
version: 1909
version: 1909