Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
04128f2
Delete .github/workflows/jekyll-docker.yml
Dargon789 Jul 4, 2025
59f9611
ops: Add more mempool servers to elements.conf & ops: Bump elements t…
Dargon789 Jul 4, 2025
ffea486
Merge branch 'mempool:master' into master
Dargon789 Jul 4, 2025
712a47d
Create static.yml
Dargon789 Jul 4, 2025
1baf182
Merge pull request #9 from Dargon789/Dargon789-patch-1
Dargon789 Jul 4, 2025
2a0ce49
Create docker-image.yml
Dargon789 Jul 4, 2025
9c4a40e
Potential fix for code scanning alert no. 47: Workflow does not conta…
Dargon789 Jul 4, 2025
b4ca8de
Update jekyll-gh-pages.yml
Dargon789 Jul 4, 2025
22d9908
Create ci_own.yml
Dargon789 Jul 4, 2025
8408113
Potential fix for code scanning alert no. 48: Workflow does not conta…
Dargon789 Jul 4, 2025
1ec4f74
Update ci.yml (#14)
Dargon789 Jul 5, 2025
cf78641
Update docker-image.yml
Dargon789 Jul 5, 2025
4caed32
Update jekyll-gh-pages.yml
Dargon789 Jul 5, 2025
db3ea5c
Delete .github/workflows/docker-image.yml
Dargon789 Jul 5, 2025
c914071
Create SECURITY.md (#15)
Dargon789 Jul 5, 2025
98b3e59
Create nextjs.yml (#16)
Dargon789 Jul 5, 2025
18e681a
Potential fix for code scanning alert no. 25: Server-side request for…
Dargon789 Jul 5, 2025
82483c7
Create rust.yml
Dargon789 Jul 5, 2025
506c369
Potential fix for code scanning alert no. 50: Workflow does not conta…
Dargon789 Jul 5, 2025
3186abb
Merge branch 'mempool:master' into master
Dargon789 Jul 7, 2025
a320453
Merge branch 'mempool:master' into master
Dargon789 Aug 2, 2025
9d04753
Merge branch 'mempool:master' into master
Dargon789 Aug 22, 2025
d69ea3e
Merge branch 'mempool:master' into master
Dargon789 Sep 8, 2025
7bf6f97
Merge branch 'mempool:master' into master
Dargon789 Sep 9, 2025
fb648db
Update rust.yml
Dargon789 Sep 9, 2025
b5e3188
Merge branch 'mempool:master' into master
Dargon789 Sep 10, 2025
1ea60b9
Update rust.yml
Dargon789 Sep 10, 2025
0561790
Merge branch 'mempool:master' into master
Dargon789 Oct 2, 2025
03b0e6c
Create cargo.yml (#23)
Dargon789 Oct 2, 2025
bc3f602
Update issue templates (#26)
Dargon789 Oct 2, 2025
db2d909
Update rust.yml (#27)
Dargon789 Oct 2, 2025
2cf932d
Update ci.yml
Dargon789 Oct 2, 2025
5602b3e
Potential fix for code scanning alert no. 24: Server-side request for…
Dargon789 Oct 2, 2025
410b52a
Potential fix for code scanning alert no. 33: Client-side cross-site …
Dargon789 Oct 2, 2025
b542916
Update rust.yml
Dargon789 Oct 2, 2025
d4d4db3
Update e2e_parameterized.yml (#40)
Dargon789 Oct 2, 2025
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
37 changes: 37 additions & 0 deletions .circleci/cargo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
version: 2.1

jobs:
build-and-test:
docker:
- image: cimg/rust:1.90.0
steps:
- checkout
- restore_cache:
keys:
- v1-cargo-{{ checksum "Cargo.lock" }}
- v1-cargo-
- run:
name: "Check formatting"
command: cargo fmt -- --check
- run:
name: "Run tests"
command: cargo test
- save_cache:
key: v1-cargo-{{ checksum "Cargo.lock" }}
paths:
- "~/.cargo/bin"
- "~/.cargo/registry/index"
- "~/.cargo/registry/cache"
- "~/.cargo/git/db"
- "target"
- run:
name: "Check formatting"
command: cargo fmt -- --check
- run:
name: "Run tests"
command: cargo test

workflows:
ci:
jobs:
- build-and-test
31 changes: 31 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/configuration-reference
version: 2.1

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/jobs-steps/#jobs-overview & https://circleci.com/docs/configuration-reference/#jobs
jobs:
say-hello:
# Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub.
# See: https://circleci.com/docs/executor-intro/ & https://circleci.com/docs/configuration-reference/#executor-job
docker:
# Specify the version you desire here
# See: https://circleci.com/developer/images/image/cimg/base
- image: cimg/base:current

# Add steps to the job
# See: https://circleci.com/docs/jobs-steps/#steps-overview & https://circleci.com/docs/configuration-reference/#steps
steps:
# Checkout the code as the first step.
- checkout
- run:
name: "Say hello"
command: "echo Hello, World!"

# Orchestrate jobs using workflows
# See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows
workflows:
say-hello-workflow: # This is the name of the workflow, feel free to change it to better match your workflow.
# Inside the workflow, you define the jobs you want to run.
jobs:
- say-hello
6 changes: 5 additions & 1 deletion .github/ISSUE_TEMPLATE/00-bug-issue.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
name: 🐛 Bug Report
name: "\U0001F41B Bug Report"
about: Report bugs (no support requests, please)
title: ''
labels: 'bug'
assignees: ''

---

<!--
Expand Down
6 changes: 5 additions & 1 deletion .github/ISSUE_TEMPLATE/30-feature-request.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
name: ✨ Feature Request
name: "✨ Feature Request"
about: Request a feature or suggest other enhancements
title: ''
labels: 'enhancement'
assignees: ''

---

<!--
Expand Down
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Custom issue template
about: A clear and concise description of this issue template's purpose.
title: ''
labels: ''
assignees: ''

---


2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -405,4 +405,4 @@ jobs:
- name: Validate JSON syntax
run: |
cat mempool-config.json | jq
working-directory: docker/docker/backend
working-directory: docker/docker/backend
38 changes: 38 additions & 0 deletions .github/workflows/ci_own.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This is a basic workflow to help you get started with Actions

name: CI
permissions:
contents: read

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
14 changes: 10 additions & 4 deletions .github/workflows/e2e_parameterized.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,13 @@ jobs:
strategy:
fail-fast: false
matrix:
module: ["mempool", "liquid", "testnet4"]
module: ["mempool", "liquid", "testnet4"]
spec: |
cypress/e2e/mainnet/*.spec.ts
cypress/e2e/signet/*.spec.ts
cypress/e2e/mainnet2/*.spec.ts
cypress/e2e/liquid2/*.spec.ts


name: E2E tests for ${{ matrix.module }}
steps:
Expand Down Expand Up @@ -197,7 +203,7 @@ jobs:
tag: ${{ github.event_name }}
working-directory: ${{ matrix.module }}/frontend
build: npm run config:defaults:${{ matrix.module }}
start: npm run start:parameterized
start: npm run start: parameterized
wait-on: "http://localhost:4200"
wait-on-timeout: 120
record: true
Expand Down Expand Up @@ -225,7 +231,7 @@ jobs:
tag: ${{ github.event_name }}
working-directory: ${{ matrix.module }}/frontend
build: npm run config:defaults:${{ matrix.module }}
start: npm run start:parameterized
start: npm run start: parameterized
wait-on: "http://localhost:4200"
wait-on-timeout: 120
record: true
Expand Down Expand Up @@ -253,7 +259,7 @@ jobs:
tag: ${{ github.event_name }}
working-directory: ${{ matrix.module }}/frontend
build: npm run config:defaults:mempool
start: npm run start:parameterized
start: npm run start: parameterized
wait-on: "http://localhost:4200"
wait-on-timeout: 120
record: true
Expand Down
116 changes: 116 additions & 0 deletions .github/workflows/google.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
# This workflow will build a docker container, publish it to Google Container
# Registry, and deploy it to GKE when there is a push to the "master"
# branch.
#
# To configure this workflow:
#
# 1. Enable the following Google Cloud APIs:
#
# - Artifact Registry (artifactregistry.googleapis.com)
# - Google Kubernetes Engine (container.googleapis.com)
# - IAM Credentials API (iamcredentials.googleapis.com)
#
# You can learn more about enabling APIs at
# https://support.google.com/googleapi/answer/6158841.
#
# 2. Ensure that your repository contains the necessary configuration for your
# Google Kubernetes Engine cluster, including deployment.yml,
# kustomization.yml, service.yml, etc.
#
# 3. Create and configure a Workload Identity Provider for GitHub:
# https://github.com/google-github-actions/auth#preferred-direct-workload-identity-federation.
#
# Depending on how you authenticate, you will need to grant an IAM principal
# permissions on Google Cloud:
#
# - Artifact Registry Administrator (roles/artifactregistry.admin)
# - Kubernetes Engine Developer (roles/container.developer)
#
# You can learn more about setting IAM permissions at
# https://cloud.google.com/iam/docs/manage-access-other-resources
#
# 5. Change the values in the "env" block to match your values.

name: 'Build and Deploy to GKE'

on:
push:
branches:
- '"master"'

env:
PROJECT_ID: 'my-project' # TODO: update to your Google Cloud project ID
GAR_LOCATION: 'us-central1' # TODO: update to your region
GKE_CLUSTER: 'cluster-1' # TODO: update to your cluster name
GKE_ZONE: 'us-central1-c' # TODO: update to your cluster zone
DEPLOYMENT_NAME: 'gke-test' # TODO: update to your deployment name
REPOSITORY: 'samples' # TODO: update to your Artifact Registry docker repository name
IMAGE: 'static-site'
WORKLOAD_IDENTITY_PROVIDER: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider' # TODO: update to your workload identity provider

jobs:
setup-build-publish-deploy:
name: 'Setup, Build, Publish, and Deploy'
runs-on: 'ubuntu-latest'
environment: 'production'

permissions:
contents: 'read'
id-token: 'write'

steps:
- name: 'Checkout'
uses: 'actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332' # actions/checkout@v4

# Configure Workload Identity Federation and generate an access token.
#
# See https://github.com/google-github-actions/auth for more options,
# including authenticating via a JSON credentials file.
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@f112390a2df9932162083945e46d439060d66ec2' # google-github-actions/auth@v2
with:
workload_identity_provider: '${{ env.WORKLOAD_IDENTITY_PROVIDER }}'

# Authenticate Docker to Google Cloud Artifact Registry
- name: 'Docker Auth'
uses: 'docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567' # docker/login-action@v3
with:
username: 'oauth2accesstoken'
password: '${{ steps.auth.outputs.auth_token }}'
registry: '${{ env.GAR_LOCATION }}-docker.pkg.dev'

# Get the GKE credentials so we can deploy to the cluster
- name: 'Set up GKE credentials'
uses: 'google-github-actions/get-gke-credentials@6051de21ad50fbb1767bc93c11357a49082ad116' # google-github-actions/get-gke-credentials@v2
with:
cluster_name: '${{ env.GKE_CLUSTER }}'
location: '${{ env.GKE_ZONE }}'

# Build the Docker image
- name: 'Build and push Docker container'
run: |-
DOCKER_TAG="${GAR_LOCATION}-docker.pkg.dev/${PROJECT_ID}/${REPOSITORY}/${IMAGE}:${GITHUB_SHA}"

docker build \
--tag "${DOCKER_TAG}" \
--build-arg GITHUB_SHA="${GITHUB_SHA}" \
--build-arg GITHUB_REF="${GITHUB_REF}" \
.

docker push "${DOCKER_TAG}"

# Set up kustomize
- name: 'Set up Kustomize'
run: |-
curl -sfLo kustomize https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.4.3/kustomize_v5.4.3_linux_amd64.tar.gz
chmod u+x ./kustomize

# Deploy the Docker image to the GKE cluster
- name: 'Deploy to GKE'
run: |-
# replacing the image name in the k8s template
./kustomize edit set image LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY/IMAGE:TAG=$GAR_LOCATION-docker.pkg.dev/$PROJECT_ID/$REPOSITORY/$IMAGE:$GITHUB_SHA
./kustomize build . | kubectl apply -f -
kubectl rollout status deployment/$DEPLOYMENT_NAME
kubectl get services -o wide
51 changes: 51 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Loading
Loading