Skip to content

Commit 1ed13b6

Browse files
authored
Update docs.Dockerfile (#122)
* Update docs.Dockerfile * Create harness-docs.yaml
1 parent 1ab5a22 commit 1ed13b6

File tree

2 files changed

+87
-1
lines changed

2 files changed

+87
-1
lines changed

docs.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:6.0
1+
FROM mcr.microsoft.com/dotnet/sdk:7.0
22
COPY . /indico-client-csharp
33
WORKDIR /indico-client-csharp
44
RUN chmod +x ./scripts/build_docs.sh

harness-docs.yaml

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
pipeline:
2+
projectIdentifier: IPA_Release
3+
orgIdentifier: default
4+
tags: {}
5+
stages:
6+
- stage:
7+
name: Build Docs Container
8+
identifier: Build_Docs_Container
9+
description: ""
10+
type: CI
11+
spec:
12+
cloneCodebase: true
13+
execution:
14+
steps:
15+
- step:
16+
type: BuildAndPushDockerRegistry
17+
name: BuildAndPushDockerRegistry_1
18+
identifier: BuildAndPushDockerRegistry_1
19+
spec:
20+
connectorRef: account.harbor
21+
repo: harbor.devops.indico.io/indico/indico-client-csharp
22+
tags:
23+
- <+codebase.commitSha>
24+
dockerfile: docs.Dockerfile
25+
platform:
26+
os: Linux
27+
arch: Amd64
28+
runtime:
29+
type: Cloud
30+
spec: {}
31+
- stage:
32+
name: Build Csharp Docs
33+
identifier: Build_Python_Docs
34+
description: ""
35+
type: Custom
36+
spec:
37+
execution:
38+
steps:
39+
- step:
40+
type: Container
41+
name: PR To Readme
42+
identifier: PR_To_Readme
43+
spec:
44+
connectorRef: account.harbor
45+
image: harbor.devops.indico.io/indico/indico-client-csharp:<+codebase.commitSha>
46+
command: |
47+
cd /indico-client-csharp
48+
./scripts/build_docs.sh
49+
shell: Bash
50+
infrastructure:
51+
type: KubernetesDirect
52+
spec:
53+
connectorRef: account.Dev_Cluster
54+
namespace: default
55+
resources:
56+
limits:
57+
cpu: "0.5"
58+
memory: 500Mi
59+
annotations: {}
60+
labels: {}
61+
containerSecurityContext:
62+
capabilities:
63+
drop: []
64+
add: []
65+
nodeSelector: {}
66+
reports:
67+
type: JUnit
68+
spec:
69+
paths: []
70+
outputVariables: []
71+
envVariables:
72+
GITHUB_TOKEN: <+secrets.getValue("readmeghpat")>
73+
TAG: <+codebase.commitSha>
74+
LANGUAGE: chsarp
75+
README_API_KEY: <+secrets.getValue("meghanhickeyreadmepat")>
76+
DOCS_PATH: /harness/csharp
77+
timeout: 1m 30s
78+
tags: {}
79+
properties:
80+
ci:
81+
codebase:
82+
connectorRef: account.Indico
83+
repoName: indico-client-csharp
84+
build: <+input>
85+
identifier: Generate_CSharp_Docs
86+
name: Generate CSharp Docs

0 commit comments

Comments
 (0)