Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream merge #11

Merged
merged 125 commits into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from 124 commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
63ad897
client: added support for westend (#281)
Bullrich Jun 8, 2023
47ad8ff
Fixed error on different base (#287)
Bullrich Jun 8, 2023
e3c3edc
fixed relative path usage on base enabled (#288)
Bullrich Jun 8, 2023
09e2577
question btn hidden on mobile (#290)
Bullrich Jun 9, 2023
6115012
Fixed block explorer 🧱 url in success screen (#294)
Bullrich Jun 9, 2023
ea96350
Update the E2E tests to run against Polkadot v0.9.42 (#295)
rzadp Jun 12, 2023
66c6d3d
Removing ui image and docker-compose files (#296)
mutantcornholio Jun 12, 2023
af98ba1
Internal dependencies update (#297)
mutantcornholio Jun 12, 2023
b8cc267
Bump XCM types to V3 (#303)
rzadp Jun 16, 2023
fd22e0b
Apply common codestyle to client
mutantcornholio Jun 14, 2023
8a6f865
Merge pull request #300 from paritytech/yuri/client-codestyle
mutantcornholio Jun 16, 2023
fcf771c
Change teleportAssets to limitedTeleportAssets (#304)
rzadp Jun 16, 2023
2938a1a
Remove unnecessary code construct (#306)
rzadp Jun 19, 2023
31510be
Configs and environment rework
mutantcornholio Jun 16, 2023
2b32907
Removed unused injectedTypes
mutantcornholio Jun 19, 2023
b655f99
Removed incorrect "required" option
mutantcornholio Jun 19, 2023
ef23c76
Fixed wococo currency name
mutantcornholio Jun 19, 2023
5d85ac6
Reintroducing subscan links, for supported networks
mutantcornholio Jun 20, 2023
e702811
Merge pull request #308 from paritytech/yuri/subscan-links
mutantcornholio Jun 20, 2023
54256d1
Removing http requests between bot and server
mutantcornholio Jun 20, 2023
115851d
Merge pull request #309 from paritytech/yuri/no-backend-requests
mutantcornholio Jun 20, 2023
f6f8cf8
Subscan url fix
mutantcornholio Jun 20, 2023
74e09d7
Merge pull request #310 from paritytech/yuri/extrinsic-facepalm
mutantcornholio Jun 20, 2023
3924b91
Subscan URL fix [2]
mutantcornholio Jun 21, 2023
343eba6
Merge pull request #311 from paritytech/yuri/extrinsic-facepalm-2
mutantcornholio Jun 21, 2023
16e8277
Upgrading matrix-js-sdk package
mutantcornholio Jun 21, 2023
76c1182
Merge pull request #312 from paritytech/yuri/matrix-sdk-upgrade
mutantcornholio Jun 21, 2023
ab68723
Node.js and dependencies upgrade
mutantcornholio Jun 23, 2023
9fcac8c
Merge pull request #314 from paritytech/yuri/deps-upgrade
mutantcornholio Jun 23, 2023
f4cb960
10 WND drip amount for westend, fixed balance cap for other networks
mutantcornholio Jul 3, 2023
794f669
Merge pull request #316 from paritytech/yuri/drip-amounts
mutantcornholio Jul 3, 2023
1d0738e
Merging rococo faucets
mutantcornholio Jul 10, 2023
efb1fa6
Merge pull request #318 from paritytech/yuri/merge-faucets
mutantcornholio Jul 10, 2023
2feda75
Use testcontainers for e2e tests
mutantcornholio Jul 10, 2023
983b40c
Merge pull request #317 from paritytech/yuri/testcontainers
mutantcornholio Jul 11, 2023
7029050
Bump semver from 5.7.1 to 5.7.2 (#319)
dependabot[bot] Jul 11, 2023
df251f8
Removed SMF_CONFIG_DEPLOYED_TIME variable
mutantcornholio Jul 12, 2023
8827e2d
Merge pull request #320 from paritytech/yuri/remove-deployed-time
mutantcornholio Jul 14, 2023
90af40d
Using @eng-automation/js logger and metrics
mutantcornholio Jul 18, 2023
da9cae5
Merge pull request #321 from paritytech/yuri/drop-error-counter
mutantcornholio Jul 18, 2023
fd77df9
Removing EXTERNAL_ACCESS
mutantcornholio Jul 19, 2023
e30f218
Merge pull request #323 from paritytech/yuri/external-access-remove
mutantcornholio Jul 19, 2023
3586a6d
Masking secrets in logs
mutantcornholio Jul 20, 2023
fea3a83
Merge pull request #325 from paritytech/yuri/masking-secrets
mutantcornholio Jul 20, 2023
edb83a9
Trappist faucet + updates
mutantcornholio Jul 21, 2023
5df3d29
Merge pull request #326 from paritytech/yuri/trappist-faucet
mutantcornholio Jul 24, 2023
2eabae4
Fixing formatting for bot replies
mutantcornholio Jul 24, 2023
14c3f8b
Merge pull request #330 from paritytech/yuri/fixing-formatting
mutantcornholio Jul 24, 2023
9c5e18a
Fix trappist faucet backend url
mutantcornholio Jul 24, 2023
c5e88cd
Merge pull request #331 from paritytech/yuri/fix-trappist-url
mutantcornholio Jul 24, 2023
e08b928
Trappist CI deployment
mutantcornholio Jul 24, 2023
21ea36a
Merge pull request #332 from paritytech/yuri/trappist-deployment
mutantcornholio Jul 24, 2023
8496286
Bump word-wrap from 1.2.3 to 1.2.4 (#322)
dependabot[bot] Jul 25, 2023
83b12bb
Fixing Trappist faucet url
mutantcornholio Aug 1, 2023
3165e5d
Merge pull request #333 from paritytech/yuri/fix-trappist-url
mutantcornholio Aug 1, 2023
49e3f0d
Rotate public recaptcha key (#334)
PierreBesson Aug 8, 2023
09d0d65
Introducing postgres to faucet
mutantcornholio Aug 17, 2023
083b0b2
Bitnami image, fix column
mutantcornholio Aug 18, 2023
2306c74
Merge pull request #336 from paritytech/yuri/postgres
mutantcornholio Aug 23, 2023
44c41d4
Running migrations on the start
mutantcornholio Aug 24, 2023
47c0abe
Merge pull request #338 from paritytech/yuri/fix-migrations
mutantcornholio Aug 24, 2023
8687208
Drip query fix
mutantcornholio Aug 29, 2023
fb89b2d
Merge pull request #339 from paritytech/yuri/fix-drip-query
mutantcornholio Aug 29, 2023
3b20583
Update .env.example
leonardocustodio Aug 31, 2023
40295b8
Update PolkadotActions.ts
leonardocustodio Aug 31, 2023
3c42634
Lint
leonardocustodio Aug 31, 2023
a60d871
Merge pull request #340 from leonardocustodio/main
mutantcornholio Aug 31, 2023
f6be40c
Fixing drip query + more semantic http status
mutantcornholio Sep 1, 2023
09fd324
More logs to debug e2e tests timeout in CI
mutantcornholio Sep 1, 2023
3e156ff
Merge pull request #342 from paritytech/yuri/fix-drip-query
mutantcornholio Sep 1, 2023
cecbd4e
Fix drip query[2]
mutantcornholio Sep 4, 2023
14e4491
Merge pull request #343 from paritytech/yuri/fix-drip-query-2
mutantcornholio Sep 4, 2023
8ae1bf9
[ci] Fix buildah (#344)
alvicsam Sep 19, 2023
09cc1b8
Bump postcss from 8.4.21 to 8.4.31 in /client (#345)
dependabot[bot] Oct 9, 2023
ae004c4
Bump postcss from 8.4.24 to 8.4.31 (#346)
dependabot[bot] Oct 9, 2023
a4fee15
Upgrade @polkadot/api (#351)
rzadp Oct 17, 2023
0cc808d
Fix transfer on rococo (#353)
mordamax Oct 17, 2023
47ece98
Fix teleport xcm types (#354)
mordamax Oct 19, 2023
0be585f
remove createType (#355)
mordamax Oct 20, 2023
2e90191
Bump @babel/traverse from 7.17.9 to 7.23.2 (#352)
dependabot[bot] Oct 23, 2023
ab65d07
Adding gitspiegel-trigger workflow
mutantcornholio Oct 30, 2023
1b76235
Merge pull request #357 from paritytech/yuri/gitspiegel-trigger
mutantcornholio Oct 30, 2023
b1eecaf
Retire all Wococo-related infra
BulatSaif Nov 2, 2023
29fde3b
Merge pull request #358 from paritytech/bs/2924-wococo-retire
mutantcornholio Nov 2, 2023
2b548af
Fixing gitspiegel trigger workflow
mutantcornholio Nov 8, 2023
7ced6a2
Merge pull request #359 from paritytech/yuri/gitspiegel-trigger-fix
mutantcornholio Nov 8, 2023
1180bb1
Bump axios from 0.26.1 to 1.6.0 (#360)
dependabot[bot] Nov 12, 2023
a6ea532
client: updated favicon (#362)
Bullrich Nov 22, 2023
90670f2
Added chain selection to form (#363)
Bullrich Nov 27, 2023
916b3e6
Bump vite from 5.0.2 to 5.0.5 in /client (#364)
dependabot[bot] Dec 6, 2023
2a797e0
add Paseo testnet config
PierreBesson Jan 3, 2024
8db3310
remove wococo testnet config
PierreBesson Jan 3, 2024
6fd35fd
Merge pull request #366 from paritytech/testnets-list-update
mutantcornholio Jan 3, 2024
0582484
Adding forgotten paseo deployment
mutantcornholio Jan 3, 2024
deafc4e
Merge pull request #367 from paritytech/yuri/paseo-deployment
mutantcornholio Jan 3, 2024
c1f195a
Bump the npm_and_yarn group across 1 directories with 1 update (#368)
dependabot[bot] Jan 11, 2024
a857c92
add paseo, fix UX, whitelist paseo people separatelly (#371)
mordamax Feb 8, 2024
b0e0344
Bump the npm_and_yarn group group in /client with 1 update (#374)
dependabot[bot] Feb 26, 2024
5da338c
Updating e2e tests readme (#375)
mutantcornholio Mar 1, 2024
8e08bc6
Fixing e2e readme link
mutantcornholio Mar 5, 2024
ac079a8
Adding runtimeRestarter (#376)
mutantcornholio Mar 6, 2024
b644692
Updating zombinenet verion in e2e docs (#378)
mutantcornholio Mar 6, 2024
3b97c8d
Using PAPI for e2e tests (#379)
mutantcornholio Mar 13, 2024
53d3a49
Bump the npm_and_yarn group across 2 directories with 2 updates (#381)
dependabot[bot] Mar 17, 2024
1eea1f6
removed base url (#382)
Bullrich Mar 20, 2024
baa9be8
Added markup code generation (#383)
Bullrich Mar 25, 2024
bcb24ac
Updated actions to latest and added retention period (#384)
Bullrich Mar 25, 2024
b6b5c5e
Merge remote-tracking branch 'Upstream/main' into upstream-merge
wilwade Mar 27, 2024
ec42165
Fix issues with other networks
wilwade Mar 27, 2024
5016671
Cleanup missing pieces
wilwade Mar 27, 2024
02ad8cb
Remove gitspiegel
wilwade Mar 27, 2024
0668194
Bump node version
wilwade Mar 27, 2024
f9408c4
Make sure `PUBLIC_FAUCET_URL` exists
wilwade Mar 27, 2024
f0582ce
Remove reference to unused polkadot circles
wilwade Mar 27, 2024
65233a0
Don't try to sync issues
wilwade Mar 27, 2024
1921e6a
E2E Test run
wilwade Mar 27, 2024
4b8b095
Add test-image
wilwade Mar 27, 2024
3bdbc66
Linting
wilwade Mar 27, 2024
e09ab75
Don't lint inside of client
wilwade Mar 27, 2024
68c3733
CI
wilwade Mar 27, 2024
fdafe5c
Remove other chain tests
wilwade Mar 28, 2024
d41f69a
Add Frequency Test
wilwade Mar 28, 2024
104dfdb
Skip tests that don't apply
wilwade Mar 28, 2024
f877940
Remove non-used test
wilwade Mar 28, 2024
f1b07cd
Fix drip amount
wilwade Mar 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
!tsconfig.json
!env.*.config.json
!src

/src/**/*.e2e.ts
/src/**/*.spec.ts
42 changes: 18 additions & 24 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,40 +1,34 @@
# BOT
SMF_BOT_BACKEND_URL="http://localhost:5555"
SMF_BOT_DRIP_AMOUNT=10
SMF_CONFIG_NETWORK="rococo"

SMF_CONFIG_PORT=5555
SMF_CONFIG_DEPLOYED_REF=local

# Steps to retrieve this token:
# 1. Create a bot account (see instructions below for SMF_BOT_MATRIX_BOT_USER_ID)
# 2. Log in to the bots matrix account. Click on the name in the top left corner, then "Settings".
# 3. Click the "Help & About" tab (left side of the dialog).
# 4. Scroll to the bottom and click on <click to reveal> part of Access Token.
# Note: Keep the browser login active as the token will be invalidated once you logout
SMF_BOT_MATRIX_ACCESS_TOKEN="NotValidExampleToken"
SMF_CONFIG_MATRIX_ACCESS_TOKEN="NotValidExampleToken"

# See https://github.com/paritytech/devops/wiki/Matrix%3A-Registering-a-Matrix-Bot for how to register a bot
# Note: The bot account needs to be created in SMF_BOT_MATRIX_SERVER
SMF_BOT_MATRIX_BOT_USER_ID="@NotValidExampleAccount:matrix.parity.io"
SMF_BOT_NETWORK_DECIMALS=12
SMF_BOT_NETWORK_UNIT="UNIT"
SMF_BOT_FAUCET_IGNORE_LIST=""
SMF_BOT_MATRIX_SERVER=https://matrix.parity.io
SMF_BOT_DEPLOYED_REF=local
SMF_BOT_DEPLOYED_TIME=local

# BACKEND
SMF_CONFIG_MATRIX_BOT_USER_ID="@NotValidExampleAccount:matrix.parity.io"
SMF_CONFIG_FAUCET_IGNORE_LIST=""
SMF_CONFIG_MATRIX_SERVER=https://m.parity.io

# To get account mnemonic - create an account in https://polkadot.js.org/apps/#/accounts (save details in password manager)
# Prior creating, make sure to switch to according network (in case of westend - TEST WESTEND & PARACHAINS => Westend)
# To feed new account with test tokens, go to https://matrix.to/#/#westend_faucet:matrix.org and drip to new address
# some convenient for tests amount "!drip <address> <amount>"
SMF_BACKEND_FAUCET_ACCOUNT_MNEMONIC="this is a fake mnemonic"
SMF_BACKEND_FAUCET_BALANCE_CAP=100
SMF_BACKEND_INJECTED_TYPES="{ "Address": "AccountId", "LookupSource": "AccountId" }"
SMF_BACKEND_NETWORK_DECIMALS=12
SMF_BACKEND_PORT=5555
SMF_BACKEND_RPC_ENDPOINT="wss://westend-rpc.polkadot.io/"
SMF_BACKEND_DEPLOYED_REF=local
SMF_BACKEND_DEPLOYED_TIME=local
SMF_BACKEND_DRIP_AMOUNT="0.5"
SMF_BACKEND_EXTERNAL_ACCESS=false
SMF_CONFIG_FAUCET_ACCOUNT_MNEMONIC="this is a fake mnemonic"

# Only used with external access
SMF_BACKEND_RECAPTCHA_SECRET="6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe" # Public testing secret, will accept all tokens.
SMF_CONFIG_RECAPTCHA_SECRET="6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe" # Public testing secret, will accept all tokens.

# Database
SMF_CONFIG_DB_HOST=localhost
SMF_CONFIG_DB_PORT=5432
SMF_CONFIG_DB_USERNAME=postgres
SMF_CONFIG_DB_PASSWORD=postgres
SMF_CONFIG_DB_DATABASE_NAME=faucet
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
data
build
test
test
**/test.ts
**/*.e2e.ts
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { getConfiguration, getTypescriptOverride } = require("opstooling-js-style/src/eslint/configuration");
const { getConfiguration, getTypescriptOverride } = require("@eng-automation/js-style/src/eslint/configuration");

const tsConfParams = { rootDir: __dirname };

Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/deploy-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ jobs:
working-directory: client
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- run: yarn install --frozen-lockfile
- run: yarn run check
- run: yarn run lint
- name: Install Playwright
run: npx playwright install
- run: yarn run test
Expand All @@ -35,15 +34,16 @@ jobs:
PUBLIC_FAUCET_URL: https://faucet-api-rococo.liberti.social/drip/web
GITHUB_PAGES: "/${{ github.event.repository.name }}"
STATIC: true
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v4
with:
name: faucet
path: ./client/build
if-no-files-found: error
retention-days: 5
test-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
- uses: actions/checkout@v4
- name: Check that the image builds
run: docker build ./client --file ./client/Dockerfile
deploy-to-github-pages:
Expand All @@ -55,18 +55,18 @@ jobs:
needs: [build-faucet]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Download page
uses: actions/download-artifact@master
uses: actions/download-artifact@v4
with:
name: faucet
path: ./dist
- name: Setup Pages
uses: actions/configure-pages@v2
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
31 changes: 0 additions & 31 deletions .github/workflows/github-issue-sync.yml

This file was deleted.

9 changes: 4 additions & 5 deletions .github/workflows/verify-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ jobs:
working-directory: client
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- run: yarn install --frozen-lockfile
- run: yarn run check
- run: yarn run lint
- name: Install Playwright
run: npx playwright install
- run: yarn run test
Expand All @@ -46,6 +45,6 @@ jobs:
test-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
- uses: actions/checkout@v4
- name: Check that the image builds
run: docker build ./client --file ./client/Dockerfile
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ node_modules
storage.db
sqlite.db
build
e2e/containter_logs
e2e/zombienet_logs

# Autogenerated
env.*.config.json.d.ts
!.env.example

/data
/src/test/codegen
68 changes: 19 additions & 49 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ variables:
KUBE_NAMESPACE: "faucetbots"
CI_REGISTRY: "docker.io/paritytech"
GIT_STRATEGY: fetch
CI_IMAGE: node:16.10-alpine
BUILDAH_IMAGE: "quay.io/buildah/stable:v1.29"
CI_IMAGE: node:18.16-alpine
# BUILDAH_IMAGE is defined in group variables
BUILDAH_COMMAND: "buildah --storage-driver overlay2"
ARGOCD_IMAGE: argoproj/argocd:v2.5.5
DOCKERHUB_REPO: "paritytech"
IMAGE_NAME: docker.io/$DOCKERHUB_REPO/faucet
UI_IMAGE_NAME: docker.io/$DOCKERHUB_REPO/faucet-ui
DOCKER_TAG: "${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}"

.common-refs: &common-refs
Expand Down Expand Up @@ -72,22 +71,11 @@ variables:
--tag "$IMAGE_NAME:${DOCKER_TAG}"
--tag "$IMAGE_NAME:latest"
--file "$DOCKERFILE" .
- $BUILDAH_COMMAND build
--format=docker
--build-arg VCS_REF="${CI_COMMIT_SHA}"
--build-arg BUILD_DATE="$(date -u '+%Y-%m-%dT%H:%M:%SZ')"
--build-arg VERSION="${DOCKER_TAG}"
--build-arg PROJECT_NAME="${CI_PROJECT_NAME}"
--tag "$UI_IMAGE_NAME:${DOCKER_TAG}"
--tag "$UI_IMAGE_NAME:latest"
--file "$DOCKERFILE" ./client
- echo "$Docker_Hub_Pass_Parity" |
buildah login --username "$Docker_Hub_User_Parity" --password-stdin docker.io
- $BUILDAH_COMMAND info
- $BUILDAH_COMMAND push --format=v2s2 "$IMAGE_NAME:${DOCKER_TAG}"
- $BUILDAH_COMMAND push --format=v2s2 "$UI_IMAGE_NAME:${DOCKER_TAG}"
- $BUILDAH_COMMAND push --format=v2s2 "$IMAGE_NAME:latest"
- $BUILDAH_COMMAND push --format=v2s2 "$UI_IMAGE_NAME:latest"
after_script:
- buildah logout --all

Expand All @@ -103,13 +91,6 @@ variables:
--build-arg PROJECT_NAME="${CI_PROJECT_NAME}"
--tag "$IMAGE_NAME:latest"
--file "$DOCKERFILE" .
- $BUILDAH_COMMAND build
--format=docker
--build-arg VCS_REF="${CI_COMMIT_SHA}"
--build-arg BUILD_DATE="$(date -u '+%Y-%m-%dT%H:%M:%SZ')"
--build-arg PROJECT_NAME="${CI_PROJECT_NAME}"
--tag "$UI_IMAGE_NAME:latest"
--file "$DOCKERFILE" ./client
- $BUILDAH_COMMAND info

#### stage: test
Expand All @@ -119,17 +100,17 @@ check-linting:
<<: *common-refs
<<: *kubernetes-env
script:
- apk add git==2.30.6-r0
- yarn --network-concurrency 1 --frozen-lockfile
- yarn --frozen-lockfile
- yarn generate:papi:e2e
- cd client && yarn --frozen-lockfile && cd ..
- yarn typecheck && yarn format && yarn lint

check-tests:
stage: test
<<: *common-refs
<<: *kubernetes-env
script:
- apk add git==2.30.6-r0
- yarn --network-concurrency 1 --frozen-lockfile
- yarn --frozen-lockfile
- yarn test

#### stage: build
Expand Down Expand Up @@ -173,41 +154,41 @@ deploy-versi:
DOMAIN: parity-versi
APP: substrate-faucet-versi

deploy-wococo:
deploy-rococo:
stage: deploy
<<: *deploy-stg-refs
<<: *deploy-prod-refs
extends: .deploy-with-argocd
environment: wococo
environment: rococo
variables:
DOMAIN: parity-testnet
APP: substrate-faucet-wococo
APP: substrate-faucet-rococo

deploy-rococo:
deploy-westend:
stage: deploy
<<: *deploy-prod-refs
extends: .deploy-with-argocd
environment: rococo
environment: westend
variables:
DOMAIN: parity-testnet
APP: substrate-faucet-rococo
APP: substrate-faucet-westend

deploy-rococo-ink-docs:
deploy-trappist:
stage: deploy
<<: *deploy-prod-refs
extends: .deploy-with-argocd
environment: rococo-ink-docs
environment: trappist
variables:
DOMAIN: parity-testnet
APP: substrate-faucet-rococo-ink-docs
APP: substrate-faucet-trappist

deploy-westend:
deploy-paseo:
stage: deploy
<<: *deploy-prod-refs
extends: .deploy-with-argocd
environment: westend
environment: paseo
variables:
DOMAIN: parity-testnet
APP: substrate-faucet-westend
APP: substrate-faucet-paseo

#### stage: publish-docker-description
.publish-docker-image-description:
Expand All @@ -230,14 +211,3 @@ publish-docker-image-description-faucet:
- if: $CI_COMMIT_REF_NAME == "main"
changes:
- Dockerfile.README.md

publish-docker-image-description-faucet-ui:
extends: .publish-docker-image-description
variables:
DOCKERHUB_REPOSITORY: $DOCKERHUB_REPO/$UI_IMAGE_NAME
README_FILEPATH: $CI_PROJECT_DIR/client/Dockerfile.README.md
SHORT_DESCRIPTION: "Generic Faucet-UI for Substrate based chains"
rules:
- if: $CI_COMMIT_REF_NAME == "main"
changes:
- client/Dockerfile.README.md
2 changes: 1 addition & 1 deletion .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("opstooling-js-style/src/prettier/configuration")
module.exports = require("@eng-automation/js-style/src/prettier/configuration")
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 18.16.0
nodejs 20.11.1
6 changes: 3 additions & 3 deletions Dockerfile
aramikm marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ FROM docker.io/library/node:18.16.0-alpine
RUN apk add git

LABEL maintainer="Frequency"
LABEL description="Frequency Rococo faucet backend"
LABEL description="Frequency Testnet faucet backend"

WORKDIR /faucet

COPY ./package.json ./yarn.lock ./
RUN yarn --network-concurrency 1 --frozen-lockfile
RUN yarn --frozen-lockfile

COPY . .
RUN yarn build

CMD yarn start:backend
CMD yarn migrations:run && yarn start
Loading