Skip to content

Commit

Permalink
Update docs.Dockerfile (#122)
Browse files Browse the repository at this point in the history
* Update docs.Dockerfile

* Create harness-docs.yaml
  • Loading branch information
goatrocks authored Nov 6, 2023
1 parent 1ab5a22 commit 1ed13b6
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs.Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
86 changes: 86 additions & 0 deletions harness-docs.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1ed13b6

Please sign in to comment.