diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 14ab03777005e93c2ad3a4600ad7c34f5a35c388..0000000000000000000000000000000000000000 --- a/.drone.yml +++ /dev/null @@ -1,245 +0,0 @@ ---- -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 diff --git a/.github/workflows/fossa.yaml b/.github/workflows/fossa.yaml index 87bfe9a58e9565975006c2cec92b02f4af7bd964..c5d34cdd91c1d7ba3f570b63a82afd8f78da2fff 100644 --- a/.github/workflows/fossa.yaml +++ b/.github/workflows/fossa.yaml @@ -2,7 +2,7 @@ name: FOSSA Scanning on: push: - branches: ["main", "master", "release/**"] + branches: [ "master" ] # For manual scans. workflow_dispatch: diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index 735fc54e70ff78b230b2b52ab36b2dd5ca1647cf..44f0779a172ebd099854a3c981ff9d5b9d2202b4 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -4,6 +4,8 @@ name: CI on Pull Request on: push: pull_request: + branches: + - 'master' jobs: # Runs e2e tests. diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2bed8a438a174430910c5a2134751904a8cbde16..398999eb957f15a64c89f2a43a26c4d3e7fc9908 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,10 +2,8 @@ name: CI on Release Tag # The jobs below will execute any time a tag is pushed to any branch in the repo # and when master is updated. -on: +on: push: - branches: - - 'master' tags: - '*'