Skip to content
Snippets Groups Projects
Commit c8cf8783 authored by Bruno Bachmann's avatar Bruno Bachmann
Browse files

Update workflow triggers

parent 65559201
No related branches found
No related tags found
No related merge requests found
---
kind: pipeline
name: amd64
platform:
os: linux
arch: amd64
steps:
- name: build
image: rancher/dapper:v0.6.0
commands:
- dapper ci
- dapper e2e-sonobuoy
- dapper e2e-verify
volumes:
- name: docker
path: /var/run/docker.sock
- name: upload-artifacts
image: plugins/github-release
settings:
api_key:
from_secret: github_token
prerelease: true
checksum:
- sha256
checksum_file: CHECKSUMsum-amd64.txt
checksum_flatten: true
files:
- "dist/artifacts/*"
when:
instance:
- drone-publish.rancher.io
ref:
- refs/head/master
- refs/tags/*
event:
- tag
- name: push-controller
image: plugins/docker
settings:
dockerfile: package/Dockerfile
build_args:
- ARCH=amd64
- TAG=${DRONE_TAG}-amd64
password:
from_secret: docker_password
repo: "rancher/system-upgrade-controller"
tag: "${DRONE_TAG}-amd64"
username:
from_secret: docker_username
when:
instance:
- drone-publish.rancher.io
ref:
- refs/head/master
- refs/tags/*
event:
- tag
- name: push-e2e-tests
image: plugins/docker
settings:
dockerfile: package/Dockerfile
build_args:
- ARCH=amd64
- TAG=${DRONE_TAG}-amd64
target: e2e-tests
password:
from_secret: docker_password
repo: "rancher/system-upgrade-controller"
tag: "${DRONE_TAG}-amd64-e2e-tests"
username:
from_secret: docker_username
when:
instance:
- drone-publish.rancher.io
ref:
- refs/head/master
- refs/tags/*
event:
- tag
volumes:
- name: docker
host:
path: /var/run/docker.sock
---
kind: pipeline
name: arm64
platform:
os: linux
arch: arm64
steps:
- name: build
image: rancher/dapper:v0.6.0
commands:
- dapper ci
volumes:
- name: docker
path: /var/run/docker.sock
- name: upload-artifacts
image: plugins/github-release
settings:
api_key:
from_secret: github_token
prerelease: true
checksum:
- sha256
checksum_file: CHECKSUMsum-arm64.txt
checksum_flatten: true
files:
- "dist/artifacts/*"
when:
instance:
- drone-publish.rancher.io
ref:
- refs/head/master
- refs/tags/*
event:
- tag
- name: push-controller
image: plugins/docker
settings:
dockerfile: package/Dockerfile
build_args:
- ARCH=arm64
- TAG=${DRONE_TAG}-arm64
password:
from_secret: docker_password
repo: "rancher/system-upgrade-controller"
tag: "${DRONE_TAG}-arm64"
username:
from_secret: docker_username
when:
instance:
- drone-publish.rancher.io
ref:
- refs/head/master
- refs/tags/*
event:
- tag
- name: push-e2e-tests
image: plugins/docker
settings:
dockerfile: package/Dockerfile
build_args:
- ARCH=arm64
- TAG=${DRONE_TAG}-arm64
target: e2e-tests
password:
from_secret: docker_password
repo: "rancher/system-upgrade-controller"
tag: "${DRONE_TAG}-arm64-e2e-tests"
username:
from_secret: docker_username
when:
instance:
- drone-publish.rancher.io
ref:
- refs/head/master
- refs/tags/*
event:
- tag
volumes:
- name: docker
host:
path: /var/run/docker.sock
---
kind: pipeline
name: manifest
platform:
os: linux
arch: amd64
steps:
- name: controller
image: plugins/manifest
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
platforms:
- linux/amd64
- linux/arm64
target: "rancher/system-upgrade-controller:${DRONE_TAG}"
template: "rancher/system-upgrade-controller:${DRONE_TAG}-ARCH"
when:
instance:
- drone-publish.rancher.io
ref:
- refs/head/master
- refs/tags/*
event:
- tag
- name: e2e-tests
image: plugins/manifest
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
platforms:
- linux/amd64
- linux/arm64
target: "rancher/system-upgrade-controller:${DRONE_TAG}-e2e-tests"
template: "rancher/system-upgrade-controller:${DRONE_TAG}-ARCH-e2e-tests"
when:
instance:
- drone-publish.rancher.io
ref:
- refs/head/master
- refs/tags/*
event:
- tag
depends_on:
- amd64
- arm64
---
kind: pipeline
name: fossa
steps:
- name: fossa
image: rancher/drone-fossa:latest
settings:
api_key:
from_secret: FOSSA_API_KEY
when:
instance:
- drone-publish.rancher.io
......@@ -2,7 +2,7 @@ name: FOSSA Scanning
on:
push:
branches: ["main", "master", "release/**"]
branches: [ "master" ]
# For manual scans.
workflow_dispatch:
......
......@@ -4,6 +4,8 @@ name: CI on Pull Request
on:
push:
pull_request:
branches:
- 'master'
jobs:
# Runs e2e tests.
......
......@@ -4,8 +4,6 @@ name: CI on Release Tag
# and when master is updated.
on:
push:
branches:
- 'master'
tags:
- '*'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment