diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9fe9b83 --- /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-monitoring-data-persistor: + name: Build and push monitoring-data-persistor + uses: eu-nebulous/github-actions/.github/workflows/build-and-push-container-image.yml@main + with: + context: monitoring-data-persistor + image-name: monitoring-data-persistor + secrets: inherit diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml deleted file mode 100644 index fe94d1d..0000000 --- a/zuul.d/jobs.yaml +++ /dev/null @@ -1,73 +0,0 @@ -- job: - name: nebulous-monitoring-data-persistor-build-container-images - parent: nebulous-build-container-images - dependencies: - - name: opendev-buildset-registry - soft: false - provides: - - nebulous-monitoring-data-persistor-container-images - description: Build the container images. - files: &image_files - - ^zuul\.d/jobs\.yaml$ - - ^monitoring-data-persistor/ - vars: &image_vars - promote_container_image_job: nebulous-monitoring-data-persistor-upload-container-images - container_images: - - context: monitoring-data-persistor - registry: quay.io - repository: quay.io/nebulous/monitoring-data-persistor - namespace: nebulous - repo_shortname: monitoring-data-persistor - repo_description: "" - -- job: - name: nebulous-monitoring-data-persistor-upload-container-images - parent: nebulous-upload-container-images - dependencies: - - name: opendev-buildset-registry - soft: false - provides: - - nebulous-monitoring-data-persistor-container-images - description: Build and upload the container images. - files: *image_files - vars: *image_vars - -- job: - name: nebulous-monitoring-data-persistor-promote-container-images - parent: nebulous-promote-container-images - description: Promote previously uploaded container images. - files: *image_files - vars: *image_vars - -- job: - name: nebulous-monitoring-data-persistor-hadolint - parent: nebulous-hadolint - description: Run Hadolint on Dockerfile(s). - vars: - dockerfiles: - - monitoring-data-persistor/Dockerfile - -- job: - name: nebulous-monitoring-data-persistor-helm-lint - parent: nebulous-helm-lint - description: Run helm lint on Helm charts. - vars: - helm_charts: - - ./charts/nebulous-monitoring-data-persistor - -- job: - name: nebulous-monitoring-data-persistor-apply-helm-charts - parent: nebulous-apply-helm-charts - dependencies: - - name: opendev-buildset-registry - soft: false - - name: nebulous-monitoring-data-persistor-build-container-images - soft: true - - name: nebulous-monitoring-data-persistor-upload-container-images - soft: true - requires: - - nebulous-monitoring-data-persistor-container-images - description: Deploy a Kubernetes cluster and apply charts. - vars: - helm_charts: - nebulous-monitoring-data-persistor: ./charts/nebulous-monitoring-data-persistor diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml deleted file mode 100644 index ecc2825..0000000 --- a/zuul.d/project.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- project: - check: - jobs: - - opendev-buildset-registry - - nebulous-monitoring-data-persistor-helm-lint - - nebulous-monitoring-data-persistor-build-container-images - - nebulous-monitoring-data-persistor-hadolint - - nebulous-platform-apply-helm-charts - - nox-linters - gate: - jobs: - - opendev-buildset-registry - - nebulous-monitoring-data-persistor-helm-lint - - nebulous-monitoring-data-persistor-upload-container-images - - nebulous-monitoring-data-persistor-hadolint - - nebulous-platform-apply-helm-charts - - nox-linters - promote: - jobs: - - nebulous-monitoring-data-persistor-promote-container-images