diff --git a/.drone.starlark b/.drone.starlark index ec15bb3..bcd5d8f 100644 --- a/.drone.starlark +++ b/.drone.starlark @@ -10,6 +10,7 @@ def main(ctx): linux('arm'), linux('arm64'), linux('amd64'), + linux('ppc64le'), windows('1903'), windows('1809'), ] @@ -127,4 +128,4 @@ def manifest(): 'trigger': { 'event': ['push', 'tag'] } - } \ No newline at end of file + } diff --git a/.drone.yml b/.drone.yml index 10262fd..2a1dac7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 @@ -221,6 +254,7 @@ depends_on: - linux-amd64 - linux-arm64 - linux-arm +- linux-ppc64le - windows-1909-amd64 - windows-1903-amd64 - windows-1809-amd64 diff --git a/docker/Dockerfile.linux.ppc64le b/docker/Dockerfile.linux.ppc64le new file mode 100644 index 0000000..ae77ad4 --- /dev/null +++ b/docker/Dockerfile.linux.ppc64le @@ -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"] diff --git a/docker/manifest.tmpl b/docker/manifest.tmpl index 7a8ab73..56b8c55 100644 --- a/docker/manifest.tmpl +++ b/docker/manifest.tmpl @@ -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: @@ -52,4 +57,4 @@ manifests: platform: architecture: amd64 os: windows - version: 1909 \ No newline at end of file + version: 1909