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