Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

.drone.yml 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934
  1. ---
  2. kind: pipeline
  3. name: compliance
  4. platform:
  5. os: linux
  6. arch: arm64
  7. trigger:
  8. event:
  9. - push
  10. - tag
  11. - pull_request
  12. steps:
  13. - name: deps-frontend
  14. pull: always
  15. image: node:14
  16. commands:
  17. - make node_modules
  18. - name: lint-frontend
  19. image: node:14
  20. commands:
  21. - make lint-frontend
  22. depends_on: [deps-frontend]
  23. - name: lint-backend
  24. pull: always
  25. image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
  26. commands:
  27. - make lint-backend
  28. environment:
  29. GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
  30. GOSUMDB: sum.golang.org
  31. TAGS: bindata sqlite sqlite_unlock_notify
  32. - name: lint-backend-windows
  33. pull: always
  34. image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
  35. commands:
  36. - make golangci-lint vet
  37. environment:
  38. GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
  39. GOSUMDB: sum.golang.org
  40. TAGS: bindata sqlite sqlite_unlock_notify
  41. GOOS: windows
  42. GOARCH: amd64
  43. - name: lint-backend-gogit
  44. pull: always
  45. image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
  46. commands:
  47. - make lint-backend
  48. environment:
  49. GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
  50. GOSUMDB: sum.golang.org
  51. TAGS: bindata gogit sqlite sqlite_unlock_notify
  52. - name: checks-frontend
  53. image: node:14
  54. commands:
  55. - make checks-frontend
  56. depends_on: [deps-frontend]
  57. - name: checks-backend
  58. pull: always
  59. image: golang:1.16
  60. commands:
  61. - make checks-backend
  62. depends_on: [lint-backend]
  63. - name: build-frontend
  64. image: node:14
  65. commands:
  66. - make frontend
  67. depends_on: [lint-frontend]
  68. - name: build-backend-no-gcc
  69. pull: always
  70. image: golang:1.14 # this step is kept as the lowest version of golang that we support
  71. environment:
  72. GO111MODULE: on
  73. GOPROXY: off
  74. commands:
  75. - go build -mod=vendor -o gitea_no_gcc # test if build succeeds without the sqlite tag
  76. depends_on: [checks-backend]
  77. - name: build-backend-arm64
  78. image: golang:1.16
  79. environment:
  80. GO111MODULE: on
  81. GOPROXY: off
  82. GOOS: linux
  83. GOARCH: arm64
  84. TAGS: bindata gogit
  85. commands:
  86. - make backend # test cross compile
  87. - rm ./gitea # clean
  88. depends_on: [checks-backend]
  89. - name: build-backend-windows
  90. image: golang:1.16
  91. environment:
  92. GO111MODULE: on
  93. GOPROXY: off
  94. GOOS: windows
  95. GOARCH: amd64
  96. TAGS: bindata gogit
  97. commands:
  98. - go build -mod=vendor -o gitea_windows
  99. depends_on: [checks-backend]
  100. - name: build-backend-386
  101. image: golang:1.16
  102. environment:
  103. GO111MODULE: on
  104. GOPROXY: off
  105. GOOS: linux
  106. GOARCH: 386
  107. commands:
  108. - go build -mod=vendor -o gitea_linux_386 # test if compatible with 32 bit
  109. depends_on: [checks-backend]
  110. ---
  111. kind: pipeline
  112. name: testing-amd64
  113. platform:
  114. os: linux
  115. arch: amd64
  116. depends_on:
  117. - compliance
  118. trigger:
  119. event:
  120. - push
  121. - tag
  122. - pull_request
  123. services:
  124. - name: mysql
  125. image: mysql:5.7
  126. environment:
  127. MYSQL_ALLOW_EMPTY_PASSWORD: yes
  128. MYSQL_DATABASE: test
  129. - name: mysql8
  130. image: mysql:8.0
  131. environment:
  132. MYSQL_ALLOW_EMPTY_PASSWORD: yes
  133. MYSQL_DATABASE: testgitea
  134. - name: mssql
  135. image: mcr.microsoft.com/mssql/server:latest
  136. environment:
  137. ACCEPT_EULA: Y
  138. MSSQL_PID: Standard
  139. SA_PASSWORD: MwantsaSecurePassword1
  140. - name: ldap
  141. image: gitea/test-openldap:latest
  142. - name: elasticsearch
  143. environment:
  144. discovery.type: single-node
  145. image: elasticsearch:7.5.0
  146. - name: minio
  147. image: minio/minio:RELEASE.2021-03-12T00-00-47Z
  148. commands:
  149. - minio server /data
  150. environment:
  151. MINIO_ACCESS_KEY: 123456
  152. MINIO_SECRET_KEY: 12345678
  153. steps:
  154. - name: fetch-tags
  155. image: docker:git
  156. commands:
  157. - git fetch --tags --force
  158. when:
  159. event:
  160. exclude:
  161. - pull_request
  162. - name: build
  163. pull: always
  164. image: golang:1.16
  165. commands:
  166. - make backend
  167. environment:
  168. GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
  169. GOSUMDB: sum.golang.org
  170. TAGS: bindata sqlite sqlite_unlock_notify
  171. - name: tag-pre-condition
  172. pull: always
  173. image: drone/git
  174. commands:
  175. - git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
  176. - name: unit-test
  177. image: golang:1.16
  178. commands:
  179. - make unit-test-coverage test-check
  180. environment:
  181. GOPROXY: off
  182. TAGS: bindata sqlite sqlite_unlock_notify
  183. GITHUB_READ_TOKEN:
  184. from_secret: github_read_token
  185. - name: unit-test-gogit
  186. pull: always
  187. image: golang:1.16
  188. commands:
  189. - make unit-test-coverage test-check
  190. environment:
  191. GOPROXY: off
  192. TAGS: bindata gogit sqlite sqlite_unlock_notify
  193. GITHUB_READ_TOKEN:
  194. from_secret: github_read_token
  195. - name: test-mysql
  196. image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
  197. commands:
  198. - make test-mysql-migration integration-test-coverage
  199. environment:
  200. GOPROXY: off
  201. TAGS: bindata
  202. TEST_LDAP: 1
  203. USE_REPO_TEST_DIR: 1
  204. TEST_INDEXER_CODE_ES_URL: "http://elastic:changeme@elasticsearch:9200"
  205. depends_on:
  206. - build
  207. - name: test-mysql8
  208. image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
  209. commands:
  210. - timeout -s ABRT 40m make test-mysql8-migration test-mysql8
  211. environment:
  212. GOPROXY: off
  213. TAGS: bindata
  214. TEST_LDAP: 1
  215. USE_REPO_TEST_DIR: 1
  216. depends_on:
  217. - build
  218. - name: test-mssql
  219. image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
  220. commands:
  221. - make test-mssql-migration test-mssql
  222. environment:
  223. GOPROXY: off
  224. TAGS: bindata
  225. TEST_LDAP: 1
  226. USE_REPO_TEST_DIR: 1
  227. depends_on:
  228. - build
  229. - name: generate-coverage
  230. image: golang:1.16
  231. commands:
  232. - make coverage
  233. environment:
  234. GOPROXY: off
  235. TAGS: bindata
  236. depends_on:
  237. - unit-test
  238. - test-mysql
  239. when:
  240. branch:
  241. - master
  242. event:
  243. - push
  244. - pull_request
  245. - name: coverage-codecov
  246. pull: always
  247. image: plugins/codecov
  248. settings:
  249. files:
  250. - coverage.all
  251. token:
  252. from_secret: codecov_token
  253. depends_on:
  254. - generate-coverage
  255. when:
  256. branch:
  257. - master
  258. event:
  259. - push
  260. - pull_request
  261. ---
  262. kind: pipeline
  263. name: testing-arm64
  264. platform:
  265. os: linux
  266. arch: arm64
  267. depends_on:
  268. - compliance
  269. trigger:
  270. event:
  271. - push
  272. - tag
  273. - pull_request
  274. services:
  275. - name: pgsql
  276. pull: default
  277. image: postgres:9.5
  278. environment:
  279. POSTGRES_DB: test
  280. POSTGRES_PASSWORD: postgres
  281. - name: ldap
  282. pull: default
  283. image: gitea/test-openldap:latest
  284. steps:
  285. - name: fetch-tags
  286. image: docker:git
  287. commands:
  288. - git fetch --tags --force
  289. when:
  290. event:
  291. exclude:
  292. - pull_request
  293. - name: build
  294. pull: always
  295. image: golang:1.16
  296. commands:
  297. - make backend
  298. environment:
  299. GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
  300. GOSUMDB: sum.golang.org
  301. TAGS: bindata gogit sqlite sqlite_unlock_notify
  302. - name: test-sqlite
  303. image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
  304. commands:
  305. - timeout -s ABRT 40m make test-sqlite-migration test-sqlite
  306. environment:
  307. GOPROXY: off
  308. TAGS: bindata gogit sqlite sqlite_unlock_notify
  309. TEST_TAGS: gogit sqlite sqlite_unlock_notify
  310. USE_REPO_TEST_DIR: 1
  311. depends_on:
  312. - build
  313. - name: test-pgsql
  314. image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
  315. commands:
  316. - timeout -s ABRT 40m make test-pgsql-migration test-pgsql
  317. environment:
  318. GOPROXY: off
  319. TAGS: bindata gogit
  320. TEST_TAGS: gogit
  321. TEST_LDAP: 1
  322. USE_REPO_TEST_DIR: 1
  323. depends_on:
  324. - build
  325. ---
  326. kind: pipeline
  327. name: update_translations
  328. platform:
  329. os: linux
  330. arch: arm64
  331. trigger:
  332. branch:
  333. - master
  334. event:
  335. - cron
  336. cron:
  337. - update_translations
  338. steps:
  339. - name: download
  340. pull: always
  341. image: jonasfranz/crowdin
  342. settings:
  343. download: true
  344. export_dir: options/locale/
  345. ignore_branch: true
  346. project_identifier: gitea
  347. environment:
  348. CROWDIN_KEY:
  349. from_secret: crowdin_key
  350. - name: update
  351. pull: default
  352. image: alpine:3.13
  353. commands:
  354. - ./build/update-locales.sh
  355. - name: push
  356. pull: always
  357. image: appleboy/drone-git-push
  358. settings:
  359. author_email: "teabot@gitea.io"
  360. author_name: GiteaBot
  361. commit: true
  362. commit_message: "[skip ci] Updated translations via Crowdin"
  363. remote: "git@github.com:go-gitea/gitea.git"
  364. environment:
  365. GIT_PUSH_SSH_KEY:
  366. from_secret: git_push_ssh_key
  367. - name: upload_translations
  368. pull: always
  369. image: jonasfranz/crowdin
  370. settings:
  371. files:
  372. locale_en-US.ini: options/locale/locale_en-US.ini
  373. ignore_branch: true
  374. project_identifier: gitea
  375. environment:
  376. CROWDIN_KEY:
  377. from_secret: crowdin_key
  378. ---
  379. kind: pipeline
  380. name: update_gitignore_and_licenses
  381. platform:
  382. os: linux
  383. arch: arm64
  384. trigger:
  385. branch:
  386. - master
  387. event:
  388. - cron
  389. cron:
  390. - update_gitignore_and_licenses
  391. steps:
  392. - name: download
  393. image: golang:1.16
  394. commands:
  395. - timeout -s ABRT 40m make generate-license generate-gitignore
  396. - name: push
  397. pull: always
  398. image: appleboy/drone-git-push
  399. settings:
  400. author_email: "teabot@gitea.io"
  401. author_name: GiteaBot
  402. commit: true
  403. commit_message: "[skip ci] Updated licenses and gitignores "
  404. remote: "git@github.com:go-gitea/gitea.git"
  405. environment:
  406. GIT_PUSH_SSH_KEY:
  407. from_secret: git_push_ssh_key
  408. ---
  409. kind: pipeline
  410. name: release-latest
  411. platform:
  412. os: linux
  413. arch: amd64
  414. workspace:
  415. base: /source
  416. path: /
  417. trigger:
  418. branch:
  419. - master
  420. - "release/*"
  421. event:
  422. - push
  423. depends_on:
  424. - testing-amd64
  425. - testing-arm64
  426. steps:
  427. - name: fetch-tags
  428. image: docker:git
  429. commands:
  430. - git fetch --tags --force
  431. - name: static
  432. pull: always
  433. image: techknowlogick/xgo:go-1.16.x
  434. commands:
  435. - curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt -y install nodejs
  436. - export PATH=$PATH:$GOPATH/bin
  437. - make release
  438. environment:
  439. GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
  440. TAGS: bindata sqlite sqlite_unlock_notify
  441. - name: gpg-sign
  442. pull: always
  443. image: plugins/gpgsign:1
  444. settings:
  445. detach_sign: true
  446. excludes:
  447. - "dist/release/*.sha256"
  448. files:
  449. - "dist/release/*"
  450. environment:
  451. GPGSIGN_KEY:
  452. from_secret: gpgsign_key
  453. GPGSIGN_PASSPHRASE:
  454. from_secret: gpgsign_passphrase
  455. - name: release-branch
  456. pull: always
  457. image: plugins/s3:1
  458. settings:
  459. acl: public-read
  460. bucket: releases
  461. endpoint: https://storage.gitea.io
  462. path_style: true
  463. source: "dist/release/*"
  464. strip_prefix: dist/release/
  465. target: "/gitea/${DRONE_BRANCH##release/v}"
  466. environment:
  467. AWS_ACCESS_KEY_ID:
  468. from_secret: aws_access_key_id
  469. AWS_SECRET_ACCESS_KEY:
  470. from_secret: aws_secret_access_key
  471. when:
  472. branch:
  473. - "release/*"
  474. event:
  475. - push
  476. - name: release-master
  477. image: plugins/s3:1
  478. settings:
  479. acl: public-read
  480. bucket: releases
  481. endpoint: https://storage.gitea.io
  482. path_style: true
  483. source: "dist/release/*"
  484. strip_prefix: dist/release/
  485. target: /gitea/master
  486. environment:
  487. AWS_ACCESS_KEY_ID:
  488. from_secret: aws_access_key_id
  489. AWS_SECRET_ACCESS_KEY:
  490. from_secret: aws_secret_access_key
  491. when:
  492. branch:
  493. - master
  494. event:
  495. - push
  496. ---
  497. kind: pipeline
  498. name: release-version
  499. platform:
  500. os: linux
  501. arch: amd64
  502. workspace:
  503. base: /source
  504. path: /
  505. trigger:
  506. event:
  507. - tag
  508. depends_on:
  509. - testing-arm64
  510. - testing-amd64
  511. steps:
  512. - name: fetch-tags
  513. pull: default
  514. image: docker:git
  515. commands:
  516. - git fetch --tags --force
  517. - name: static
  518. pull: always
  519. image: techknowlogick/xgo:go-1.16.x
  520. commands:
  521. - curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt -y install nodejs
  522. - export PATH=$PATH:$GOPATH/bin
  523. - make release
  524. environment:
  525. GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
  526. TAGS: bindata sqlite sqlite_unlock_notify
  527. - name: gpg-sign
  528. pull: always
  529. image: plugins/gpgsign:1
  530. settings:
  531. detach_sign: true
  532. excludes:
  533. - "dist/release/*.sha256"
  534. files:
  535. - "dist/release/*"
  536. environment:
  537. GPGSIGN_KEY:
  538. from_secret: gpgsign_key
  539. GPGSIGN_PASSPHRASE:
  540. from_secret: gpgsign_passphrase
  541. - name: release-tag
  542. pull: always
  543. image: plugins/s3:1
  544. settings:
  545. acl: public-read
  546. bucket: releases
  547. endpoint: https://storage.gitea.io
  548. path_style: true
  549. source: "dist/release/*"
  550. strip_prefix: dist/release/
  551. target: "/gitea/${DRONE_TAG##v}"
  552. environment:
  553. AWS_ACCESS_KEY_ID:
  554. from_secret: aws_access_key_id
  555. AWS_SECRET_ACCESS_KEY:
  556. from_secret: aws_secret_access_key
  557. - name: github
  558. pull: always
  559. image: plugins/github-release:1
  560. settings:
  561. files:
  562. - "dist/release/*"
  563. environment:
  564. GITHUB_TOKEN:
  565. from_secret: github_token
  566. ---
  567. kind: pipeline
  568. name: docs
  569. platform:
  570. os: linux
  571. arch: arm64
  572. depends_on:
  573. - compliance
  574. trigger:
  575. event:
  576. - push
  577. - tag
  578. - pull_request
  579. steps:
  580. - name: build-docs
  581. pull: always
  582. image: plugins/hugo:latest
  583. commands:
  584. - apk add --no-cache make bash curl
  585. - cd docs
  586. - make trans-copy clean build
  587. - name: publish-docs
  588. pull: always
  589. image: techknowlogick/drone-netlify:latest
  590. settings:
  591. path: docs/public/
  592. site_id: d2260bae-7861-4c02-8646-8f6440b12672
  593. environment:
  594. NETLIFY_TOKEN:
  595. from_secret: netlify_token
  596. when:
  597. branch:
  598. - master
  599. event:
  600. - push
  601. ---
  602. kind: pipeline
  603. name: docker-linux-amd64-release
  604. platform:
  605. os: linux
  606. arch: amd64
  607. depends_on:
  608. - testing-amd64
  609. - testing-arm64
  610. trigger:
  611. ref:
  612. - refs/heads/master
  613. - "refs/tags/**"
  614. event:
  615. exclude:
  616. - cron
  617. steps:
  618. - name: fetch-tags
  619. image: docker:git
  620. commands:
  621. - git fetch --tags --force
  622. - name: publish
  623. pull: always
  624. image: plugins/docker:linux-amd64
  625. settings:
  626. auto_tag: true
  627. auto_tag_suffix: linux-amd64
  628. repo: gitea/gitea
  629. build_args:
  630. - GOPROXY=off
  631. password:
  632. from_secret: docker_password
  633. username:
  634. from_secret: docker_username
  635. when:
  636. event:
  637. exclude:
  638. - pull_request
  639. - name: publish-rootless
  640. image: plugins/docker:linux-amd64
  641. settings:
  642. dockerfile: Dockerfile.rootless
  643. auto_tag: true
  644. auto_tag_suffix: linux-amd64-rootless
  645. repo: gitea/gitea
  646. build_args:
  647. - GOPROXY=off
  648. password:
  649. from_secret: docker_password
  650. username:
  651. from_secret: docker_username
  652. environment:
  653. PLUGIN_MIRROR:
  654. from_secret: plugin_mirror
  655. when:
  656. event:
  657. exclude:
  658. - pull_request
  659. ---
  660. kind: pipeline
  661. name: docker-linux-arm64-dry-run
  662. platform:
  663. os: linux
  664. arch: arm64
  665. depends_on:
  666. - compliance
  667. trigger:
  668. ref:
  669. - "refs/pull/**"
  670. steps:
  671. - name: dryrun
  672. pull: always
  673. image: plugins/docker:linux-arm64
  674. settings:
  675. dry_run: true
  676. repo: gitea/gitea
  677. tags: linux-arm64
  678. build_args:
  679. - GOPROXY=off
  680. environment:
  681. PLUGIN_MIRROR:
  682. from_secret: plugin_mirror
  683. when:
  684. event:
  685. - pull_request
  686. ---
  687. kind: pipeline
  688. name: docker-linux-arm64-release
  689. platform:
  690. os: linux
  691. arch: arm64
  692. depends_on:
  693. - testing-amd64
  694. - testing-arm64
  695. trigger:
  696. ref:
  697. - refs/heads/master
  698. - "refs/tags/**"
  699. event:
  700. exclude:
  701. - cron
  702. steps:
  703. - name: fetch-tags
  704. image: docker:git
  705. commands:
  706. - git fetch --tags --force
  707. - name: publish
  708. pull: always
  709. image: plugins/docker:linux-arm64
  710. settings:
  711. auto_tag: true
  712. auto_tag_suffix: linux-arm64
  713. repo: gitea/gitea
  714. build_args:
  715. - GOPROXY=off
  716. password:
  717. from_secret: docker_password
  718. username:
  719. from_secret: docker_username
  720. environment:
  721. PLUGIN_MIRROR:
  722. from_secret: plugin_mirror
  723. when:
  724. event:
  725. exclude:
  726. - pull_request
  727. - name: publish-rootless
  728. image: plugins/docker:linux-arm64
  729. settings:
  730. dockerfile: Dockerfile.rootless
  731. auto_tag: true
  732. auto_tag_suffix: linux-arm64-rootless
  733. repo: gitea/gitea
  734. build_args:
  735. - GOPROXY=off
  736. password:
  737. from_secret: docker_password
  738. username:
  739. from_secret: docker_username
  740. environment:
  741. PLUGIN_MIRROR:
  742. from_secret: plugin_mirror
  743. when:
  744. event:
  745. exclude:
  746. - pull_request
  747. ---
  748. kind: pipeline
  749. name: docker-manifest
  750. platform:
  751. os: linux
  752. arch: amd64
  753. steps:
  754. - name: manifest-rootless
  755. pull: always
  756. image: plugins/manifest
  757. settings:
  758. auto_tag: true
  759. ignore_missing: true
  760. spec: docker/manifest.rootless.tmpl
  761. password:
  762. from_secret: docker_password
  763. username:
  764. from_secret: docker_username
  765. - name: manifest
  766. image: plugins/manifest
  767. settings:
  768. auto_tag: true
  769. ignore_missing: true
  770. spec: docker/manifest.tmpl
  771. password:
  772. from_secret: docker_password
  773. username:
  774. from_secret: docker_username
  775. trigger:
  776. ref:
  777. - refs/heads/master
  778. - "refs/tags/**"
  779. event:
  780. exclude:
  781. - cron
  782. depends_on:
  783. - docker-linux-amd64-release
  784. - docker-linux-arm64-release
  785. ---
  786. kind: pipeline
  787. name: notifications
  788. platform:
  789. os: linux
  790. arch: arm64
  791. clone:
  792. disable: true
  793. trigger:
  794. branch:
  795. - master
  796. - "release/*"
  797. event:
  798. - push
  799. - tag
  800. status:
  801. - success
  802. - failure
  803. depends_on:
  804. - testing-amd64
  805. - testing-arm64
  806. - release-version
  807. - release-latest
  808. - docker-linux-amd64-release
  809. - docker-linux-arm64-release
  810. - docker-manifest
  811. - docs
  812. steps:
  813. - name: discord
  814. pull: always
  815. image: appleboy/drone-discord:1.2.4
  816. settings:
  817. 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"
  818. webhook_id:
  819. from_secret: discord_webhook_id
  820. webhook_token:
  821. from_secret: discord_webhook_token