Skip to content

Commit

Permalink
Merge pull request #89 from galal-hussein/hardened-nginx-1.2.x-fix
Browse files Browse the repository at this point in the history
Hardened Nginx v1.2.0 changes and s390x
  • Loading branch information
galal-hussein authored Apr 22, 2022
2 parents 6d9a39e + 11740a5 commit eb73b4f
Show file tree
Hide file tree
Showing 33 changed files with 772 additions and 592 deletions.
234 changes: 234 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,234 @@
---
kind: pipeline
name: ci

platform:
os: linux
arch: amd64

steps:
- name: ci
image: rancher/dapper:v0.5.3
commands:
- dapper ci
environment:
DOCKER_PASS:
from_secret: docker_password
DOCKER_USER:
from_secret: docker_username
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- tag
instance:
- drone-publish.rancher.io

- name: e2e-test
image: rancher/dapper:v0.5.3
commands:
- dapper e2e-test
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- tag
instance:
- drone-publish.rancher.io

- name: validate
image: rancher/dapper:v0.5.3
commands:
- dapper validate
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- push
- pull_request
instance:
- drone-pr.rancher.io


- name: build
image: rancher/dapper:v0.5.3
commands:
- dapper build
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- push
- pull_request
instance:
- drone-pr.rancher.io


- name: test
image: rancher/dapper:v0.5.3
commands:
- dapper test
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- push
- pull_request
instance:
- drone-pr.rancher.io

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

---

kind: pipeline
name: ci-s390x

platform:
os: linux
arch: amd64

node:
arch: s390x

steps:
- name: ci
image: rancher/dapper:v0.5.7
commands:
- dapper ci
environment:
DOCKER_PASS:
from_secret: docker_password
DOCKER_USER:
from_secret: docker_username
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- tag
instance:
- drone-publish.rancher.io

- name: validate
image: rancher/dapper:v0.5.7
commands:
- dapper validate
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- push
- pull_request
instance:
- drone-pr.rancher.io

- name: build
image: rancher/dapper:v0.5.7
commands:
- dapper build
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- push
- pull_request
instance:
- drone-pr.rancher.io

- name: test
image: rancher/dapper:v0.5.7
commands:
- dapper test
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- push
- pull_request
instance:
- drone-pr.rancher.io

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

---
kind: pipeline
name: manifest-nginx

steps:
- name: push-manifest
image: plugins/manifest:1.0.2
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
platforms:
- linux/amd64
- linux/s390x
target: "rancher/nginx:ingress-${DRONE_TAG}"
template: "rancher/nginx:ingress-${DRONE_TAG}-ARCH"
when:
event:
- tag

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

trigger:
event:
- tag

depends_on:
- ci
- ci-s390x

---
kind: pipeline
name: manifest-nginx-controller

steps:
- name: push-manifest
image: plugins/manifest:1.0.2
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
platforms:
- linux/amd64
- linux/s390x
target: "rancher/nginx-ingress-controller:${DRONE_TAG}"
template: "rancher/nginx-ingress-controller:${DRONE_TAG}-ARCH"
when:
event:
- tag

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

trigger:
event:
- tag

depends_on:
- ci
- ci-s390x
Loading

0 comments on commit eb73b4f

Please sign in to comment.