Skip to content

Commit

Permalink
adding peer config
Browse files Browse the repository at this point in the history
  • Loading branch information
p-shubh committed Feb 19, 2025
1 parent e0ce862 commit 230d6df
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .github/workflows/build-file.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: "Docker Image Build and Publish (Non-Main)"

on:
push:
branches-ignore:
- "main"

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

jobs:
build:
name: Build and Push Docker Image
runs-on: ubuntu-latest

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

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Docker buildx
uses: sigstore/cosign-installer@v3.1.1
- name: Check install!
run: cosign version

- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}

- name: Downcase Repository Name
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}

- name: Build and Push Docker Image
run: |
export CURRENT_BRANCH=${GITHUB_REF#refs/heads/}
export TAG=$CURRENT_BRANCH
export GITHUB_REF_IMAGE=${{ env.REGISTRY }}/$REPO:$GITHUB_SHA
export GITHUB_BRANCH_IMAGE=${{ env.REGISTRY }}/$REPO:$TAG
docker build -t $GITHUB_REF_IMAGE -t $GITHUB_BRANCH_IMAGE .
echo "Pushing Image to GitHub Container Registry"
docker push $GITHUB_REF_IMAGE
docker push $GITHUB_BRANCH_IMAGE
2 changes: 1 addition & 1 deletion install-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ FOOTER=NetSepio 2024
GATEWAY_WALLET=0x0
GATEWAY_DOMAIN=https://gateway.erebrus.io
LOAD_CONFIG_FILE=false
GATEWAY_PEERID=/ip4/130.211.28.223/tcp/9001/p2p/12D3KooWJSMKigKLzehhhmppTjX7iQprA7558uU52hqvKqyjbELf
GATEWAY_PEERID=/ip4/52.14.92.177/tcp/9001/p2p/12D3KooWJSMKigKLzehhhmppTjX7iQprA7558uU52hqvKqyjbELf
CHAIN_NAME=${CHAIN}
NODE_TYPE=VPN
NODE_CONFIG=${CONFIG}
Expand Down

0 comments on commit 230d6df

Please sign in to comment.