Skip to content

Commit

Permalink
Merge pull request #32 from rohitsakala/master
Browse files Browse the repository at this point in the history
Add s390x arch support
  • Loading branch information
manuelbuil authored Jan 24, 2022
2 parents 17c31bf + 501018e commit 13c31f7
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,57 @@ volumes:
host:
path: /var/run/docker.sock

---
kind: pipeline
name: s390x
type: docker

platform:
os: linux
arch: amd64

# Hack needed for s390x: https://gist.github.com/colstrom/c2f359f72658aaabb44150ac20b16d7c#gistcomment-3858388
node:
arch: s390x

steps:
- name: build
image: rancher/dapper:v0.5.8
failure: ignore
commands:
- dapper ci
volumes:
- name: docker
path: /var/run/docker.sock

- name: docker-publish
image: plugins/docker
failure: ignore
volumes:
- name: docker
path: /var/run/docker.sock
settings:
dockerfile: package/Dockerfile
password:
from_secret: docker_password
repo: "rancher/klipper-lb"
tag: "${DRONE_TAG}-s390x"
username:
from_secret: docker_username
when:
instance:
- drone-publish.k3s.io
ref:
- refs/head/master
- refs/tags/*
event:
- tag

volumes:
- name: docker
host:
path: /var/run/docker.sock

---
kind: pipeline
name: arm
Expand Down Expand Up @@ -147,6 +198,8 @@ steps:
- linux/amd64
- linux/arm64
- linux/arm
- linux/s390x
ignore_missing: true
target: "rancher/klipper-lb:${DRONE_TAG}"
template: "rancher/klipper-lb:${DRONE_TAG}-ARCH"
when:
Expand All @@ -162,3 +215,4 @@ depends_on:
- amd64
- arm64
- arm
- s390x

0 comments on commit 13c31f7

Please sign in to comment.