Skip to content

Commit a15c005

Browse files
noisekitdmanjunath
andauthored
Armada (#113)
* Add Armada to SNX v3 release pipeline (#1) * Add armada-cli as a yarn dependency instead of using npx (#2) * only run build-armada to debug * Add armada-cli as a dependency * Add cached packages * yarn dedupe * run * now everything should be commented out * add libsecret * Add ms * Add everything back in * Cleanup * Remove seconds * Store Armada build artifacts in CircleCI (#3) * Add new armada-cli to remove external apt dependencies (#4) * Revert "Add armada-cli as a yarn dependency instead of using npx (#2)" This reverts commit 4321de4. * Add updated armada-cli package * Updated config file * skip other checks * Remove npx * add everything back in * yarn dedupe * test this too * Remove this * Deploy on armada branch --------- Co-authored-by: Dheeraj Manjunath <[email protected]>
1 parent 64c2bfd commit a15c005

File tree

87 files changed

+914
-43
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+914
-43
lines changed

.circleci/config.yml

+49
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,28 @@ commands:
7878
curl --silent --request POST --user "$IPFS_USER:$IPFS_PASS" "<< parameters.ipfs-cluster-api >>/pin/add?arg=$IPFS_CID" | tee /tmp/pin-add-$IPFS_CID.log
7979
cat /tmp/pin-add-$IPFS_CID.log | jq
8080
81+
armada-deploy:
82+
parameters:
83+
source-dir:
84+
type: string
85+
steps:
86+
- run:
87+
name: 'Build Armada bundle'
88+
command: |
89+
yarn armada:bundle armada-bundle "<< parameters.source-dir >>"
90+
CHECKSUM=$(yarn armada:checksum armada-bundle.tgz)
91+
echo 'export CHECKSUM='${CHECKSUM} >> $BASH_ENV
92+
93+
- store_artifacts:
94+
path: 'armada-bundle.tgz'
95+
96+
- run:
97+
name: 'Push to Armada'
98+
command: |
99+
# https://support.circleci.com/hc/en-us/articles/5034956515355-How-to-Programmatically-Construct-the-URLs-for-Artifacts
100+
BUNDLE_URL=https://output.circle-artifacts.com/output/job/${CIRCLE_WORKFLOW_JOB_ID}/artifacts/${CIRCLE_NODE_INDEX}/armada-bundle.tgz
101+
yarn armada:publish $ARMADA_PROJECT_ID $BUNDLE_URL $CHECKSUM --key=$ARMADA_PRIVATE_KEY
102+
81103
jobs:
82104
checks:
83105
working_directory: /tmp/app
@@ -239,6 +261,18 @@ jobs:
239261
ipfs-cluster-api: 'https://ipfs.synthetix.io/api/v0'
240262
ipns-key: 'v3.synthetix.eth'
241263

264+
liquidity-armada:
265+
working_directory: /tmp/app
266+
docker:
267+
- image: cimg/node:<< pipeline.parameters.node-version >>
268+
resource_class: large
269+
steps:
270+
- checkout
271+
- yarn-install
272+
- run: yarn workspace @snx-v3/liquidity build
273+
- armada-deploy:
274+
source-dir: './liquidity/ui/dist'
275+
242276
workflows:
243277
ui:
244278
unless:
@@ -261,6 +295,21 @@ workflows:
261295
name: liquidity-e2e-goerli
262296
- combine-coverage:
263297
requires: [tests, liquidity-cy, liquidity-e2e-optimism-mainnet]
298+
- liquidity-armada:
299+
requires:
300+
- checks
301+
- typecheck
302+
- tests
303+
- liquidity-cy
304+
- liquidity-e2e-optimism-mainnet
305+
- liquidity-e2e-optimism-goerli
306+
- liquidity-e2e-goerli
307+
filters:
308+
branches:
309+
only:
310+
- release
311+
- master
312+
- armada
264313
- liquidity-ipfs:
265314
requires:
266315
- checks
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
"download-cci-coverage": "download-cci-coverage",
2626
"publish:release": "lerna publish",
2727
"publish:dev": "lerna publish --force-publish --canary --dist-tag dev --preid dev.$(git rev-parse --short HEAD)",
28-
"prepublishOnly": "node ./prepublishOnly.js"
28+
"prepublishOnly": "node ./prepublishOnly.js",
29+
"armada:bundle": "armada bundle create",
30+
"armada:checksum": "armada bundle checksum",
31+
"armada:publish": "armada project publish"
2932
},
3033
"devDependencies": {
3134
"@babel/core": "^7.23.3",
@@ -40,6 +43,7 @@
4043
"@types/jest": "^29.5.8",
4144
"@typescript-eslint/eslint-plugin": "^6.11.0",
4245
"@typescript-eslint/parser": "^6.11.0",
46+
"armada-cli": "^0.3.4",
4347
"babel-jest": "^29.7.0",
4448
"babel-plugin-module-resolver": "^5.0.0",
4549
"eslint": "^8.53.0",

0 commit comments

Comments
 (0)