From a56ade96867bff3fb0d1ddd20ce794f3caca1901 Mon Sep 17 00:00:00 2001 From: jmarchel7bulls <123368854+jmarchel7bulls@users.noreply.github.com> Date: Mon, 10 Jun 2024 12:26:32 +0200 Subject: [PATCH] Transition from zuul to gha (#1) * Transition from zuul to gha * change context for docker build --- .github/workflows/ci.yml | 18 ++++++++++ zuul.d/jobs.yaml | 72 ---------------------------------------- zuul.d/project.yaml | 20 ----------- 3 files changed, 18 insertions(+), 92 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..cbed7e2 --- /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-security-manager: + name: Build and push security-manager + uses: eu-nebulous/github-actions/.github/workflows/build-and-push-container-image.yml@main + with: + context: security-layer + image-name: security-manager + secrets: inherit diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml deleted file mode 100644 index 2a85806..0000000 --- a/zuul.d/jobs.yaml +++ /dev/null @@ -1,72 +0,0 @@ -- job: - name: nebulous-security-manager-build-container-images - parent: nebulous-build-container-images - dependencies: - - name: opendev-buildset-registry - soft: false - provides: - - nebulous-security-manager-container-images - description: Build the container images. - files: &image_files - - ^security-layer/ - vars: &image_vars - promote_container_image_job: nebulous-security-manager-upload-container-images - container_images: - - context: security-layer - registry: quay.io - repository: quay.io/nebulous/security-manager-security-layer - namespace: nebulous - repo_shortname: security-manager-security-layer - repo_description: "" - -- job: - name: nebulous-security-manager-upload-container-images - parent: nebulous-upload-container-images - dependencies: - - name: opendev-buildset-registry - soft: false - provides: - - nebulous-security-manager-container-images - description: Build and upload the container images. - files: *image_files - vars: *image_vars - -- job: - name: nebulous-security-manager-promote-container-images - parent: nebulous-promote-container-images - description: Promote previously uploaded container images. - files: *image_files - vars: *image_vars - -- job: - name: nebulous-security-manager-hadolint - parent: nebulous-hadolint - description: Run Hadolint on Dockerfile(s). - vars: - dockerfiles: - - security-layer/Dockerfile - -- job: - name: nebulous-security-manager-helm-lint - parent: nebulous-helm-lint - description: Run helm lint on Helm charts. - vars: - helm_charts: - - ./charts/nebulous-security-manager - -- job: - name: nebulous-security-manager-apply-helm-charts - parent: nebulous-apply-helm-charts - dependencies: - - name: opendev-buildset-registry - soft: false - - name: nebulous-security-manager-build-container-images - soft: true - - name: nebulous-security-manager-upload-container-images - soft: true - requires: - - nebulous-security-manager-container-images - description: Deploy a Kubernetes cluster and apply charts. - vars: - helm_charts: - nebulous-security-manager: ./charts/nebulous-security-manager diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml deleted file mode 100644 index 071a4e7..0000000 --- a/zuul.d/project.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- project: - check: - jobs: - - opendev-buildset-registry - - nebulous-security-manager-helm-lint - - nebulous-security-manager-build-container-images - - nebulous-security-manager-hadolint - - nebulous-platform-apply-helm-charts - - nox-linters - gate: - jobs: - - opendev-buildset-registry - - nebulous-security-manager-helm-lint - - nebulous-security-manager-upload-container-images - - nebulous-security-manager-hadolint - - nebulous-platform-apply-helm-charts - - nox-linters - promote: - jobs: - - nebulous-security-manager-promote-container-images