diff --git a/docs.Dockerfile b/docs.Dockerfile index f48313a..687f608 100644 --- a/docs.Dockerfile +++ b/docs.Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:6.0 +FROM mcr.microsoft.com/dotnet/sdk:7.0 COPY . /indico-client-csharp WORKDIR /indico-client-csharp RUN chmod +x ./scripts/build_docs.sh diff --git a/harness-docs.yaml b/harness-docs.yaml new file mode 100644 index 0000000..25b2785 --- /dev/null +++ b/harness-docs.yaml @@ -0,0 +1,86 @@ +pipeline: + projectIdentifier: IPA_Release + orgIdentifier: default + tags: {} + stages: + - stage: + name: Build Docs Container + identifier: Build_Docs_Container + description: "" + type: CI + spec: + cloneCodebase: true + execution: + steps: + - step: + type: BuildAndPushDockerRegistry + name: BuildAndPushDockerRegistry_1 + identifier: BuildAndPushDockerRegistry_1 + spec: + connectorRef: account.harbor + repo: harbor.devops.indico.io/indico/indico-client-csharp + tags: + - <+codebase.commitSha> + dockerfile: docs.Dockerfile + platform: + os: Linux + arch: Amd64 + runtime: + type: Cloud + spec: {} + - stage: + name: Build Csharp Docs + identifier: Build_Python_Docs + description: "" + type: Custom + spec: + execution: + steps: + - step: + type: Container + name: PR To Readme + identifier: PR_To_Readme + spec: + connectorRef: account.harbor + image: harbor.devops.indico.io/indico/indico-client-csharp:<+codebase.commitSha> + command: | + cd /indico-client-csharp + ./scripts/build_docs.sh + shell: Bash + infrastructure: + type: KubernetesDirect + spec: + connectorRef: account.Dev_Cluster + namespace: default + resources: + limits: + cpu: "0.5" + memory: 500Mi + annotations: {} + labels: {} + containerSecurityContext: + capabilities: + drop: [] + add: [] + nodeSelector: {} + reports: + type: JUnit + spec: + paths: [] + outputVariables: [] + envVariables: + GITHUB_TOKEN: <+secrets.getValue("readmeghpat")> + TAG: <+codebase.commitSha> + LANGUAGE: chsarp + README_API_KEY: <+secrets.getValue("meghanhickeyreadmepat")> + DOCS_PATH: /harness/csharp + timeout: 1m 30s + tags: {} + properties: + ci: + codebase: + connectorRef: account.Indico + repoName: indico-client-csharp + build: <+input> + identifier: Generate_CSharp_Docs + name: Generate CSharp Docs