Skip to content

Commit

Permalink
Add s390x drone pipeline
Browse files Browse the repository at this point in the history
fix missing volume

Signed-off-by: thomasferrandiz <thomas.ferrandiz@suse.com>
  • Loading branch information
thomasferrandiz authored and innobead committed Apr 25, 2022
1 parent 46009c3 commit 6de17ae
Showing 1 changed file with 94 additions and 0 deletions.
94 changes: 94 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,97 @@ volumes:
host:
path: /var/run/docker.sock

---
kind: pipeline
name: default-s390x

node:
arch: s390x

platform:
os: linux
arch: amd64

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-share-manager
tag: "${DRONE_BRANCH}-head-s390x"
username:
from_secret: docker_username
volumes:
- name: socket
path: /var/run/docker.sock
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-share-manager
tag: "${DRONE_TAG}-s390x"
username:
from_secret: docker_username
volumes:
- name: socket
path: /var/run/docker.sock
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
Expand All @@ -202,6 +293,7 @@ steps:
platforms:
- linux/amd64
- linux/arm64
- linux/s390x
target: "longhornio/longhorn-share-manager:${DRONE_BRANCH}-head"
template: "longhornio/longhorn-share-manager:${DRONE_BRANCH}-head-ARCH"
when:
Expand All @@ -220,6 +312,7 @@ steps:
platforms:
- linux/amd64
- linux/arm64
- linux/s390x
target: "longhornio/longhorn-share-manager:${DRONE_TAG}"
template: "longhornio/longhorn-share-manager:${DRONE_TAG}-ARCH"
when:
Expand All @@ -231,3 +324,4 @@ steps:
depends_on:
- default-amd64
- default-arm64
- default-s390x

0 comments on commit 6de17ae

Please sign in to comment.