From 356694851776b4c9f9bd9e778dbbe4c62508371e Mon Sep 17 00:00:00 2001 From: Jan Marchel <123368854+jmarchel7bulls@users.noreply.github.com> Date: Tue, 11 Jun 2024 10:04:18 +0200 Subject: [PATCH] transition from zuul to gha (#1) --- .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..6dcdf19 --- /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-gui-builder: + name: Build and push gui-builder + uses: eu-nebulous/github-actions/.github/workflows/build-and-push-container-image.yml@main + with: + context: gui + image-name: gui-builder + secrets: inherit diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml deleted file mode 100644 index 138498a..0000000 --- a/zuul.d/jobs.yaml +++ /dev/null @@ -1,73 +0,0 @@ -- job: - name: nebulous-gui-build-container-images - parent: nebulous-build-container-images - dependencies: - - name: opendev-buildset-registry - soft: false - provides: - - nebulous-gui-container-images - description: Build the container images. - files: &image_files - - ^zuul\.d/jobs\.yaml$ - - ^gui/ - vars: &image_vars - promote_container_image_job: nebulous-gui-upload-container-images - container_images: - - context: gui - registry: quay.io - repository: quay.io/nebulous/gui-builder - namespace: nebulous - repo_shortname: gui-builder - repo_description: "" - -- job: - name: nebulous-gui-upload-container-images - parent: nebulous-upload-container-images - dependencies: - - name: opendev-buildset-registry - soft: false - provides: - - nebulous-gui-container-images - description: Build and upload the container images. - files: *image_files - vars: *image_vars - -- job: - name: nebulous-gui-promote-container-images - parent: nebulous-promote-container-images - description: Promote previously uploaded container images. - files: *image_files - vars: *image_vars - -- job: - name: nebulous-gui-hadolint - parent: nebulous-hadolint - description: Run Hadolint on Dockerfile(s). - vars: - dockerfiles: - - gui/Dockerfile - -- job: - name: nebulous-gui-helm-lint - parent: nebulous-helm-lint - description: Run helm lint on Helm charts. - vars: - helm_charts: - - ./charts/nebulous-gui - -- job: - name: nebulous-gui-apply-helm-charts - parent: nebulous-apply-helm-charts - dependencies: - - name: opendev-buildset-registry - soft: false - - name: nebulous-gui-build-container-images - soft: true - - name: nebulous-gui-upload-container-images - soft: true - requires: - - nebulous-gui-container-images - description: Deploy a Kubernetes cluster and apply charts. - vars: - helm_charts: - nebulous-gui: ./charts/nebulous-gui diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml deleted file mode 100644 index 340db11..0000000 --- a/zuul.d/project.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- project: - check: - jobs: - - opendev-buildset-registry - - nebulous-gui-helm-lint - - nebulous-gui-build-container-images - - nebulous-gui-hadolint - - nebulous-platform-apply-helm-charts - - nox-linters - gate: - jobs: - - opendev-buildset-registry - - nebulous-gui-helm-lint - - nebulous-gui-upload-container-images - - nebulous-gui-hadolint - - nebulous-platform-apply-helm-charts - - nox-linters - promote: - jobs: - - nebulous-gui-promote-container-images