From 9b1a61bd271ae32489d10e5a7dde35c0112b06ea Mon Sep 17 00:00:00 2001 From: jmarchel7bulls Date: Mon, 10 Jun 2024 12:17:46 +0200 Subject: [PATCH 1/3] Transition from zuul to gha --- .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..a801578 --- /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-manager + 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 From 13418a3bac4fff9c70eb6751c0a1454ab655a53c Mon Sep 17 00:00:00 2001 From: jmarchel7bulls Date: Mon, 10 Jun 2024 12:22:45 +0200 Subject: [PATCH 2/3] change context for docker build --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a801578..cbed7e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,6 @@ jobs: name: Build and push security-manager uses: eu-nebulous/github-actions/.github/workflows/build-and-push-container-image.yml@main with: - context: security-manager + context: security-layer image-name: security-manager secrets: inherit From 95b85d912ce2fbe18c3689d67f579254bd21fca3 Mon Sep 17 00:00:00 2001 From: jmarchel7bulls Date: Mon, 10 Jun 2024 12:56:56 +0200 Subject: [PATCH 3/3] change image name --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cbed7e2..d14aa3d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,5 +14,5 @@ jobs: uses: eu-nebulous/github-actions/.github/workflows/build-and-push-container-image.yml@main with: context: security-layer - image-name: security-manager + image-name: security-manager-security-layer secrets: inherit