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

chrypnotoad testing workflow permissions #75

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
52 changes: 52 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Create and publish a Docker image

on:
push:
branches: ['dev']
pull_request:
branches: ['dev']

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

permissions:
contents: read
packages: write
attestations: write
id-token: write

jobs:
build-and-push-image:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
secrets: |
GIT_AUTH_TOKEN= ${{ secrets.GITHUB_TOKEN }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
12 changes: 6 additions & 6 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const CONFIG: Config = {
port: Number(process.env.LOG_SERVER_PORT) || 4446,
},
ip: '0.0.0.0',
port: 8080,
port: Number(process.env.RPC_PORT) || 8080,
chainId: 8082,
nodeIpInfo: {
externalIp: process.env.NODE_EXTERNAL_IP || '127.0.0.1',
Expand All @@ -129,23 +129,23 @@ export const CONFIG: Config = {
askLocalHostForArchiver: true,
rotationInterval: 60,
faucetServerUrl: process.env.FAUCET_URL || 'https://faucet.liberty10.shardeum.org',
queryFromValidator: true,
queryFromValidator: Boolean(process.env.QUERY_FROM_VALIDATOR) || true,
explorerUrl: process.env.EXPLORER_URL || 'http://127.0.0.1:6001',
queryFromExplorer: false,
generateTxTimestamp: true,
nodelistRefreshInterval: 30000,
nodelistRefreshInterval: Number(process.env.NODELIST_REFRESH_INTERVAL) || 30000,
defaultRequestRetry: 5,
gasEstimateMethod: 'serviceValidator', //serviceValidator or replayEngine or validator
gasEstimateMethod: process.env.GAS_ESTIMATE_METHOD || 'serviceValidator', //serviceValidator or replayEngine or validator
gasEstimateInvalidationIntervalInMs: 1000 * 60 * 60 * 2, // 2 hours
gasEstimateUseCache: false,
staticGasEstimate: '0x5B8D80', // comment out rather than delete this line
staticGasEstimate: process.env.STATIC_GAS_ESTIMATE || '0x5B8D80', // comment out rather than delete this line
defaultRequestTimeout: {
default: 2000,
contract: 7000,
account: 10000,
full_nodelist: 10000,
},
aalgWarmup: false,
aalgWarmup: Boolean(process.env.AALG_WARMUP) || true,
aalgWarmupServiceTPS: 10,
recordTxStatus: false, // not safe for production, keep this off. Known issue.
rateLimit: false,
Expand Down
Loading