Skip to content

Commit 402590f

Browse files
committed
ci: Remove upgrade section from drone file
1 parent 95973ff commit 402590f

File tree

1 file changed

+0
-88
lines changed

1 file changed

+0
-88
lines changed

.drone.yml

Lines changed: 0 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -34,94 +34,6 @@ steps:
3434
exit 1
3535
fi
3636
37-
---
38-
# pipeline to upgrade the DataProtectorSharing SC
39-
kind: pipeline
40-
type: docker
41-
name: sharing-smart-contract upgrade
42-
43-
trigger:
44-
event:
45-
- promote
46-
target:
47-
# upgrade the staging DataProtectorSharing contract with the new implementation
48-
- sharing-smart-contract-upgrade-staging
49-
# # upgrade the prod DataProtectorSharing contract with the new implementation
50-
# - sharing-smart-contract-upgrade-prod
51-
branch:
52-
- main
53-
54-
steps:
55-
- name: install-deps
56-
image: node:18.19
57-
pull: always
58-
commands:
59-
- cd packages/sharing-smart-contract
60-
- npm ci
61-
62-
- name: install-forge
63-
image: node:18.19
64-
pull: always
65-
commands:
66-
- export XDG_CONFIG_HOME=/drone/src
67-
- curl -L https://foundry.paradigm.xyz | bash
68-
- export PATH="$PATH:/drone/src/.foundry/bin"
69-
- foundryup
70-
- forge install foundry-rs/forge-std --no-git
71-
72-
- name: smart-contract-staging-upgrade
73-
image: node:18.19
74-
environment:
75-
WALLET_PRIVATE_KEY:
76-
# TODO replace by dataprotector-admin-dev-privatekey
77-
from_secret: deployer-dev-privatekey
78-
ENV: staging
79-
MANIFEST_DEFAULT_DIR: .openzeppelin/staging
80-
commands:
81-
- cd packages/sharing-smart-contract
82-
- export PATH="$PATH:/drone/src/.foundry/bin"
83-
- npm run upgrade -- --network bellecour
84-
- git add .openzeppelin
85-
- git commit -m "$DRONE_DEPLOY_TO deployment $DRONE_BUILD_NUMBER $DRONE_COMMIT" --author="drone-product <[email protected]>"
86-
depends_on:
87-
- install-forge
88-
- install-deps
89-
when:
90-
target:
91-
- sharing-smart-contract-upgrade-staging
92-
93-
# - name: smart-contract-prod-upgrade
94-
# image: node:18.19
95-
# environment:
96-
# WALLET_PRIVATE_KEY:
97-
# # TODO replace by dataprotector-admin-prod-privatekey
98-
# from_secret: deployer-prod-privatekey
99-
# ENV: prod
100-
# MANIFEST_DEFAULT_DIR: .openzeppelin/prod
101-
# commands:
102-
# - cd packages/sharing-smart-contract
103-
# - export PATH="$PATH:/drone/src/.foundry/bin"
104-
# - npm run upgrade -- --network bellecour
105-
# - git add .openzeppelin
106-
# - git commit -m "$DRONE_DEPLOY_TO deployment $DRONE_BUILD_NUMBER $DRONE_COMMIT" --author="drone-product <[email protected]>"
107-
# depends_on:
108-
# - install-forge
109-
# - install-deps
110-
# when:
111-
# target:
112-
# - sharing-smart-contract-upgrade-prod
113-
114-
- name: git-push
115-
image: appleboy/drone-git-push
116-
settings:
117-
remote: ssh://[email protected]/iExecBlockchainComputing/dataprotector-sdk.git
118-
branch: update-env-${DRONE_BUILD_NUMBER}
119-
ssh_key:
120-
from_secret: ssh-key-team-product-github-push
121-
depends_on:
122-
- smart-contract-staging-upgrade
123-
# - smart-contract-prod-upgrade
124-
12537
---
12638
kind: pipeline
12739
type: docker

0 commit comments

Comments
 (0)