Skip to content

Commit

Permalink
Armada (#113)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
noisekit and dmanjunath authored Dec 11, 2023
1 parent 64c2bfd commit a15c005
Show file tree
Hide file tree
Showing 87 changed files with 914 additions and 43 deletions.
49 changes: 49 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,28 @@ commands:
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
cat /tmp/pin-add-$IPFS_CID.log | jq
armada-deploy:
parameters:
source-dir:
type: string
steps:
- run:
name: 'Build Armada bundle'
command: |
yarn armada:bundle armada-bundle "<< parameters.source-dir >>"
CHECKSUM=$(yarn armada:checksum armada-bundle.tgz)
echo 'export CHECKSUM='${CHECKSUM} >> $BASH_ENV
- store_artifacts:
path: 'armada-bundle.tgz'

- run:
name: 'Push to Armada'
command: |
# https://support.circleci.com/hc/en-us/articles/5034956515355-How-to-Programmatically-Construct-the-URLs-for-Artifacts
BUNDLE_URL=https://output.circle-artifacts.com/output/job/${CIRCLE_WORKFLOW_JOB_ID}/artifacts/${CIRCLE_NODE_INDEX}/armada-bundle.tgz
yarn armada:publish $ARMADA_PROJECT_ID $BUNDLE_URL $CHECKSUM --key=$ARMADA_PRIVATE_KEY
jobs:
checks:
working_directory: /tmp/app
Expand Down Expand Up @@ -239,6 +261,18 @@ jobs:
ipfs-cluster-api: 'https://ipfs.synthetix.io/api/v0'
ipns-key: 'v3.synthetix.eth'

liquidity-armada:
working_directory: /tmp/app
docker:
- image: cimg/node:<< pipeline.parameters.node-version >>
resource_class: large
steps:
- checkout
- yarn-install
- run: yarn workspace @snx-v3/liquidity build
- armada-deploy:
source-dir: './liquidity/ui/dist'

workflows:
ui:
unless:
Expand All @@ -261,6 +295,21 @@ workflows:
name: liquidity-e2e-goerli
- combine-coverage:
requires: [tests, liquidity-cy, liquidity-e2e-optimism-mainnet]
- liquidity-armada:
requires:
- checks
- typecheck
- tests
- liquidity-cy
- liquidity-e2e-optimism-mainnet
- liquidity-e2e-optimism-goerli
- liquidity-e2e-goerli
filters:
branches:
only:
- release
- master
- armada
- liquidity-ipfs:
requires:
- checks
Expand Down
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.
Binary file not shown.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
"download-cci-coverage": "download-cci-coverage",
"publish:release": "lerna publish",
"publish:dev": "lerna publish --force-publish --canary --dist-tag dev --preid dev.$(git rev-parse --short HEAD)",
"prepublishOnly": "node ./prepublishOnly.js"
"prepublishOnly": "node ./prepublishOnly.js",
"armada:bundle": "armada bundle create",
"armada:checksum": "armada bundle checksum",
"armada:publish": "armada project publish"
},
"devDependencies": {
"@babel/core": "^7.23.3",
Expand All @@ -40,6 +43,7 @@
"@types/jest": "^29.5.8",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"armada-cli": "^0.3.4",
"babel-jest": "^29.7.0",
"babel-plugin-module-resolver": "^5.0.0",
"eslint": "^8.53.0",
Expand Down
Loading

0 comments on commit a15c005

Please sign in to comment.