Merge pull request #17 from isuruf/ppc64le

Support ppc64le
This commit is contained in:
Marko Gaćeša
2021-06-30 11:08:06 +02:00
committed by GitHub
4 changed files with 45 additions and 0 deletions

View File

@@ -78,6 +78,23 @@ steps:
- refs/heads/master
- refs/tags/*
- name: publish_ppc64le
image: plugins/docker
pull: if-not-exists
settings:
repo: drone/drone-runner-docker
auto_tag: true
auto_tag_suffix: linux-ppc64le
dockerfile: docker/Dockerfile.linux.ppc64le
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
ref:
- refs/heads/master
- refs/tags/*
volumes:
- name: go
temp: {}

View File

@@ -0,0 +1,22 @@
FROM alpine:3 as alpine
RUN apk add -U --no-cache ca-certificates
RUN wget https://github.com/isuruf/tmate/releases/download/2.4.0/tmate-2.4.0-static-linux-ppc64le.tar.xz
RUN tar -xf tmate-2.4.0-static-linux-ppc64le.tar.xz
RUN mv tmate-2.4.0-static-linux-ppc64le/tmate /bin/
RUN chmod +x /bin/tmate
FROM scratch
EXPOSE 3000
ENV GODEBUG netdns=go
ENV DRONE_PLATFORM_OS linux
ENV DRONE_PLATFORM_ARCH ppc64le
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=alpine /bin/tmate /bin/
LABEL com.centurylinklabs.watchtower.stop-signal="SIGINT"
ADD release/linux/ppc64le/drone-runner-docker /bin/
ENTRYPOINT ["/bin/drone-runner-docker"]

View File

@@ -29,6 +29,11 @@ manifests:
variant: v6
architecture: arm
os: linux
-
image: drone/drone-runner-docker:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-ppc64le
platform:
architecture: ppc64le
os: linux
-
image: drone/drone-runner-docker:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-1803-amd64
platform:

View File

@@ -13,6 +13,7 @@ set -x
GOOS=linux GOARCH=amd64 go build -o release/linux/amd64/drone-runner-docker
GOOS=linux GOARCH=arm64 go build -o release/linux/arm64/drone-runner-docker
GOOS=linux GOARCH=arm go build -o release/linux/arm/drone-runner-docker
GOOS=linux GOARCH=ppc64le go build -o release/linux/ppc64le/drone-runner-docker
# windows
GOOS=windows go build -o release/windows/amd64/drone-runner-docker.exe