From c8cf8783d7598ff356bf1f32b029071c30a81587 Mon Sep 17 00:00:00 2001 From: Bruno Bachmann <bruno.bachmann@suse.com> Date: Wed, 12 Jun 2024 10:25:16 -0700 Subject: [PATCH] Update workflow triggers --- .drone.yml | 245 ---------------------------- .github/workflows/fossa.yaml | 2 +- .github/workflows/pull-request.yaml | 2 + .github/workflows/release.yaml | 4 +- 4 files changed, 4 insertions(+), 249 deletions(-) delete mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 14ab0377..00000000 --- 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 87bfe9a5..c5d34cdd 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 735fc54e..44f0779a 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 2bed8a43..398999eb 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: - '*' -- GitLab