Skip to content

Commit

Permalink
AG-35244 Add mock plans for dnr-rulesets auto deploy
Browse files Browse the repository at this point in the history
Merge in ADGUARD-FILTERS/tsurlfilter from feature/AG-35244-1 to master

Squashed commit of the following:

commit 3b7fcde
Merge: 299657b 80b3307
Author: Vladimir Zhelvis <[email protected]>
Date:   Thu Aug 29 17:21:08 2024 +0300

    Merge branch 'master' into feature/AG-35244-1

commit 299657b
Author: Vladimir Zhelvis <[email protected]>
Date:   Thu Aug 29 16:43:32 2024 +0300

    simplify mock plan

commit 7adb2b5
Author: Vladimir Zhelvis <[email protected]>
Date:   Thu Aug 29 16:23:33 2024 +0300

    add cron comment

commit bab7496
Author: Vladimir Zhelvis <[email protected]>
Date:   Thu Aug 29 12:56:28 2024 +0300

    revert optional artifact

commit a7adfc8
Author: Vladimir Zhelvis <[email protected]>
Date:   Thu Aug 29 12:54:45 2024 +0300

    optional artifact

commit 63c5af5
Author: Vladimir Zhelvis <[email protected]>
Date:   Thu Aug 29 12:38:12 2024 +0300

    fix

commit 65e52d5
Author: Vladimir Zhelvis <[email protected]>
Date:   Thu Aug 29 12:35:30 2024 +0300

    fix autobuild plan

commit a9db251
Author: Vladimir Zhelvis <[email protected]>
Date:   Wed Aug 28 19:03:50 2024 +0300

    change import order

commit 5c6f25f
Author: Vladimir Zhelvis <[email protected]>
Date:   Wed Aug 28 18:57:17 2024 +0300

    add mock plans for dnr-rulesets auto deploy
  • Loading branch information
zhelvis authored and maximtop committed Aug 29, 2024
1 parent 80b3307 commit e7654af
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bamboo-specs/bamboo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,14 @@
---
!include 'dnr-rulesets-permissions.yaml'

---
!include 'dnr-rulesets-auto-build.yaml'

---
!include 'dnr-rulesets-auto-deploy.yaml'

---
!include 'dnr-rulesets-auto-deploy-permissions.yaml'

---
!include 'examples-adguard-api-mv3-tests.yaml'
20 changes: 20 additions & 0 deletions bamboo-specs/dnr-rulesets-auto-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
version: 2
plan:
project-key: AJL
key: DNRRULESETSAUTOBUILD
name: DNR Rulesets - auto build
stages:
- Build:
- Build

Build:
tasks:
- script:
- echo 'Task run successfully!'
artifacts:
- name: dnr-rulesets.tgz
location: packages/dnr-rulesets/
pattern: dnr-rulesets.tgz
shared: true
required: true
16 changes: 16 additions & 0 deletions bamboo-specs/dnr-rulesets-auto-deploy-permissions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
version: 2
deployment:
name: DNR Rulesets - auto deploy
deployment-permissions:
- groups:
- extensions-developers
permissions:
- view
environment-permissions:
- npmjs:
- groups:
- extensions-developers
permissions:
- view
- deploy
33 changes: 33 additions & 0 deletions bamboo-specs/dnr-rulesets-auto-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
version: 2
deployment:
name: DNR Rulesets - auto deploy
source-plan: AJL-DNRRULESETSAUTOBUILD
release-naming: ${bamboo.inject.version}
environments:
- npmjs

npmjs:
docker:
image: adguard/node-ssh:18.19--0
volumes:
${system.PNPM_DIR}: "${bamboo.cachePnpm}"
triggers:
- build-success
tasks:
- checkout:
force-clean-build: 'true'
- artifact-download:
artifacts:
- name: dnr-rulesets.tgz
- script:
- echo 'Task run successfully!'
requirements:
- adg-docker: 'true'
notifications:
- events:
- deployment-started-and-finished
recipients:
- webhook:
name: Deploy webhook
url: http://prod.jirahub.service.eu.consul/v1/webhook/bamboo

0 comments on commit e7654af

Please sign in to comment.