Skip to content

Commit a4c13af

Browse files
Move docs pipelines to use Actions (#24434)
similar to #24314, this moves drone cron pipelines to (GitHub) Actions. As these are mostly compatible with Gitea Actions, when we start to dogfood, these will already be migrated. I also removed the discord notify pipeline, as it hasn't been working for several months.
1 parent 14c142b commit a4c13af

File tree

3 files changed

+53
-126
lines changed

3 files changed

+53
-126
lines changed

.drone.yml

Lines changed: 0 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -267,35 +267,6 @@ steps:
267267
- name: deps
268268
path: /go
269269

270-
---
271-
kind: pipeline
272-
type: docker
273-
name: compliance-docs
274-
275-
platform:
276-
os: linux
277-
arch: amd64
278-
279-
trigger:
280-
event:
281-
- pull_request
282-
paths:
283-
include:
284-
- "docs/**"
285-
- "*.md"
286-
287-
steps:
288-
- name: deps-frontend
289-
image: node:18
290-
pull: always
291-
commands:
292-
- make deps-frontend
293-
294-
- name: lint-md
295-
image: node:18
296-
commands:
297-
- make lint-md
298-
299270
---
300271
kind: pipeline
301272
type: docker
@@ -1033,49 +1004,6 @@ steps:
10331004
from_secret: github_token
10341005
depends_on: [gpg-sign]
10351006

1036-
---
1037-
kind: pipeline
1038-
type: docker
1039-
name: docs
1040-
1041-
platform:
1042-
os: linux
1043-
arch: arm64
1044-
1045-
depends_on:
1046-
- compliance
1047-
1048-
trigger:
1049-
event:
1050-
- push
1051-
- tag
1052-
- pull_request
1053-
paths:
1054-
include:
1055-
- "docs/**"
1056-
1057-
steps:
1058-
- name: build-docs
1059-
image: gitea/test_env:linux-1.20-arm64
1060-
commands:
1061-
- cd docs
1062-
- make trans-copy clean build
1063-
1064-
- name: publish-docs
1065-
image: techknowlogick/drone-netlify:latest
1066-
pull: always
1067-
settings:
1068-
path: docs/public/
1069-
site_id: d2260bae-7861-4c02-8646-8f6440b12672
1070-
environment:
1071-
NETLIFY_TOKEN:
1072-
from_secret: netlify_token
1073-
when:
1074-
branch:
1075-
- main
1076-
event:
1077-
- push
1078-
10791007
---
10801008
kind: pipeline
10811009
type: docker
@@ -1818,57 +1746,3 @@ depends_on:
18181746
- docker-linux-arm64-release
18191747
- docker-linux-amd64-release-branch
18201748
- docker-linux-arm64-release-branch
1821-
1822-
---
1823-
kind: pipeline
1824-
type: docker
1825-
name: notifications
1826-
1827-
platform:
1828-
os: linux
1829-
arch: arm64
1830-
1831-
clone:
1832-
disable: true
1833-
1834-
trigger:
1835-
branch:
1836-
- main
1837-
- "release/*"
1838-
event:
1839-
- push
1840-
- tag
1841-
status:
1842-
- success
1843-
- failure
1844-
1845-
depends_on:
1846-
- testing-mysql
1847-
- testing-mysql8
1848-
- testing-mssql
1849-
- testing-pgsql
1850-
- testing-sqlite
1851-
- release-version
1852-
- release-latest
1853-
- docker-linux-amd64-release
1854-
- docker-linux-arm64-release
1855-
- docker-linux-amd64-release-version
1856-
- docker-linux-arm64-release-version
1857-
- docker-linux-amd64-release-candidate-version
1858-
- docker-linux-arm64-release-candidate-version
1859-
- docker-linux-amd64-release-branch
1860-
- docker-linux-arm64-release-branch
1861-
- docker-manifest
1862-
- docker-manifest-version
1863-
- docs
1864-
1865-
steps:
1866-
- name: discord
1867-
image: appleboy/drone-discord:1.2.4
1868-
pull: always
1869-
settings:
1870-
message: "{{#success build.status}} ✅ Build #{{build.number}} of `{{repo.name}}` succeeded.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{else}} ❌ Build #{{build.number}} of `{{repo.name}}` failed.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{/success}}\n"
1871-
webhook_id:
1872-
from_secret: discord_webhook_id
1873-
webhook_token:
1874-
from_secret: discord_webhook_token
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Compliance testing for documentation
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "docs/**"
7+
- "*.md"
8+
9+
jobs:
10+
compliance-docs:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: checkout
14+
uses: actions/checkout@v3
15+
- name: setup node
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: 18
19+
- name: install dependencies
20+
run: make deps-frontend
21+
- name: lint markdown
22+
run: make lint-md
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish documentation
2+
3+
on:
4+
push:
5+
paths:
6+
- "docs/**"
7+
branch:
8+
- main
9+
10+
jobs:
11+
compliance-docs:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: checkout
15+
uses: actions/checkout@v3
16+
- name: setup go
17+
uses: actions/setup-go@v4
18+
with:
19+
go-version: '>=1.20.1'
20+
- name: build docs
21+
run: |
22+
cd docs
23+
make trans-copy clean build
24+
- name: publish to netlify
25+
uses: nwtgck/[email protected]
26+
with:
27+
production-branch: main
28+
publish-dir: docs/public/
29+
site-id: d2260bae-7861-4c02-8646-8f6440b12672
30+
env:
31+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

0 commit comments

Comments
 (0)