From b3dc7b17256179549f198979a40bb6f1e9bd3447 Mon Sep 17 00:00:00 2001 From: jmarchel7bulls Date: Mon, 10 Jun 2024 16:37:57 +0200 Subject: [PATCH] transtion from zuul to gha --- .github/workflows/ci.yml | 18 ++++++++++ zuul.d/jobs.yaml | 73 ---------------------------------------- zuul.d/project.yaml | 20 ----------- 3 files changed, 18 insertions(+), 93 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 zuul.d/jobs.yaml delete mode 100644 zuul.d/project.yaml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..cc5aeb5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: CI +on: + push: + branches: + - main + - r[1-9] + pull_request: + branches: + - main + - r[1-9] +jobs: + build-and-push-exn-middleware-core: + name: Build and push exn-middleware + uses: eu-nebulous/github-actions/.github/workflows/build-and-push-container-image.yml@main + with: + context: exn-middleware-core + image-name: exn-middleware-core + secrets: inherit diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml deleted file mode 100644 index 67ee25d..0000000 --- a/zuul.d/jobs.yaml +++ /dev/null @@ -1,73 +0,0 @@ -- job: - name: nebulous-exn-middleware-build-container-images - parent: nebulous-build-container-images - dependencies: - - name: opendev-buildset-registry - soft: false - provides: - - nebulous-exn-middleware-container-images - description: Build the container images. - files: &image_files - - ^zuul\.d/jobs\.yaml$ - - ^exn-middleware-core - vars: &image_vars - promote_container_image_job: nebulous-exn-middleware-upload-container-images - container_images: - - context: exn-middleware-core - registry: quay.io - repository: quay.io/nebulous/exn-middleware-core - namespace: nebulous - repo_shortname: exn-middleware-core - repo_description: "" - -- job: - name: nebulous-exn-middleware-upload-container-images - parent: nebulous-upload-container-images - dependencies: - - name: opendev-buildset-registry - soft: false - provides: - - nebulous-exn-middleware-container-images - description: Build and upload the container images. - files: *image_files - vars: *image_vars - -- job: - name: nebulous-exn-middleware-promote-container-images - parent: nebulous-promote-container-images - description: Promote previously uploaded container images. - files: *image_files - vars: *image_vars - -- job: - name: nebulous-exn-middleware-hadolint - parent: nebulous-hadolint - description: Run Hadolint on Dockerfile(s). - vars: - dockerfiles: - - exn-middleware-core/Dockerfile - -- job: - name: nebulous-exn-middleware-helm-lint - parent: nebulous-helm-lint - description: Run helm lint on Helm charts. - vars: - helm_charts: - - ./charts/nebulous-exn-middleware - -- job: - name: nebulous-exn-middleware-apply-helm-charts - parent: nebulous-apply-helm-charts - dependencies: - - name: opendev-buildset-registry - soft: false - - name: nebulous-exn-middleware-build-container-images - soft: true - - name: nebulous-exn-middleware-upload-container-images - soft: true - requires: - - nebulous-exn-middleware-container-images - description: Deploy a Kubernetes cluster and apply charts. - vars: - helm_charts: - nebulous-exn-middleware: ./charts/nebulous-exn-middleware diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml deleted file mode 100644 index 4403067..0000000 --- a/zuul.d/project.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- project: - check: - jobs: - - opendev-buildset-registry - - nebulous-exn-middleware-helm-lint - - nebulous-exn-middleware-build-container-images - - nebulous-exn-middleware-hadolint - - nebulous-platform-apply-helm-charts - - nox-linters - gate: - jobs: - - opendev-buildset-registry - - nebulous-exn-middleware-helm-lint - - nebulous-exn-middleware-upload-container-images - - nebulous-exn-middleware-hadolint - - nebulous-platform-apply-helm-charts - - nox-linters - promote: - jobs: - - nebulous-exn-middleware-promote-container-images