Add s390x drone pipeline
@@ -182,6 +182,91 @@ volumes:
host:
path: /var/run/docker.sock
+---
+kind: pipeline
+name: default-s390x
+
+platform:
+ os: linux
+ arch: amd64
+
+node:
+ arch: s390x
+
+steps:
+- name: fetch
+ image: ubuntu:18.04
+ commands:
+ - apt-get update
+ - apt-get install -y git
+ - git fetch --tags
+
+- name: build
+ pull: default
+ image: rancher/dapper:v0.5.8
+ commands:
+ - dapper ci
+ privileged: true
+ volumes:
+ - name: socket
+ path: /var/run/docker.sock
+
+- name: publish-image
+ image: rancher/drone-images:docker-s390x
+ settings:
+ build_args:
+ - ARCH=s390x
+ custom_dns: 1.1.1.1
+ dockerfile: package/Dockerfile
+ password:
+ from_secret: docker_password
+ repo: longhornio/longhorn-manager
+ tag: "${DRONE_BRANCH}-head-s390x"
+ username:
+ from_secret: docker_username
+ when:
+ event:
+ - push
+
+- name: publish-tagged-image
+ image: rancher/drone-images:docker-s390x
+ settings:
+ build_args:
+ - ARCH=s390x
+ custom_dns: 1.1.1.1
+ dockerfile: package/Dockerfile
+ password:
+ from_secret: docker_password
+ repo: longhornio/longhorn-manager
+ tag: "${DRONE_TAG}-s390x"
+ username:
+ from_secret: docker_username
+ when:
+ event:
+ - tag
+
+- name: slack_notify
+ image: plugins/slack
+ settings:
+ template: "Build {{build.link}} failed.\n"
+ username: Drone_Publish
+ webhook:
+ from_secret: slack_webhook
+ when:
+ event:
+ exclude:
+ - pull_request
+ instance:
+ include:
+ - drone-publish.longhorn.io
+ status:
+ - failure
+
+volumes:
+- name: socket
+ host:
+ path: /var/run/docker.sock
+
---
kind: pipeline
name: manifest
@@ -201,6 +286,7 @@ steps:
platforms:
- linux/amd64
- linux/arm64
+ - linux/s390x
target: "longhornio/longhorn-manager:${DRONE_BRANCH}-head"
template: "longhornio/longhorn-manager:${DRONE_BRANCH}-head-ARCH"
when:
@@ -219,6 +305,7 @@ steps:
platforms:
- linux/amd64
- linux/arm64
+ - linux/s390x
target: "longhornio/longhorn-manager:${DRONE_TAG}"
template: "longhornio/longhorn-manager:${DRONE_TAG}-ARCH"
when:
@@ -247,3 +334,4 @@ steps:
depends_on:
- default-amd64
- default-arm64
+- default-s390x
