Skip to content

Commit

Permalink
Merge pull request #223 from shutter-network/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
faheelsattar authored Dec 5, 2024
2 parents d169e18 + ab5fb28 commit 8a34426
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 17 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,12 @@ jobs:
exit 1 # Exit if the branch name is not valid
fi
# Staging Deployment (with Tagging)
deploy_instance_staging:
version_bump:
if: github.ref == 'refs/heads/staging' && github.event_name == 'push'
runs-on: ubuntu-latest
needs: run_cypress_tests
needs: [run_cypress_tests, validate_branch_name]

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

# Fetch tags to get the latest version tag
- name: Fetch tags
run: git fetch --tags

# Install semver for version bumping
- name: Install semver
run: npm install -g semver

# Determine version bump after a merge to staging
- name: Determine version bump
id: version_bump
Expand Down Expand Up @@ -131,6 +119,24 @@ jobs:
git tag "v${{ env.NEXT_VERSION }}"
git push origin "v${{ env.NEXT_VERSION }}"
# Staging Deployment (with Tagging)
deploy_instance_staging:
if: github.ref == 'refs/heads/staging' && github.event_name == 'push'
runs-on: ubuntu-latest
needs: [run_cypress_tests, version_bump]

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

# Fetch tags to get the latest version tag
- name: Fetch tags
run: git fetch --tags

# Install semver for version bumping
- name: Install semver
run: npm install -g semver

# Setup SSH for deployment
- name: Setup SSH
run: |
Expand Down
1 change: 1 addition & 0 deletions docker/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ GENESIS_TIMESTAMP=
SLOT_DURATION=
SLOTS_PER_EPOCH=
TOTAL_GNOSIS_VALIDATORS=
INCLUSION_DELAY=
LOKI_URL=https://<user_id>:<password>@logs.metrics.shutter.network/insert/loki/api/v1/push
6 changes: 4 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ services:
DB_SSL_MODE: disable
P2P_BOOTSTRAP_ADDRESSES:
P2P_ENVIRONMENT:
P2P_DISCOVERY_NAMESPACE:
command: ["start", "--rpc-url", "${RPC_URL}", "--beacon-api-url", "${BEACON_API_URL}", "--sequencer-contract-address", "${SEQUENCER_CONTRACT_ADDRESS}", "--validator-registry-contract-address", "${VALIDATOR_REGISTRY_CONTRACT_ADDRESS}", "--p2pkey", "${P2P_KEY}"]
P2P_DISCOVERY_NAMESPACE:
INCLUSION_DELAY: ${INCLUSION_DELAY}

command: ["start", "--rpc-url", "${RPC_URL}", "--beacon-api-url", "${BEACON_API_URL}", "--sequencer-contract-address", "${SEQUENCER_CONTRACT_ADDRESS}", "--validator-registry-contract-address", "${VALIDATOR_REGISTRY_CONTRACT_ADDRESS}", "--p2pkey", "${P2P_KEY}", "--inclusion-delay", "${INCLUSION_DELAY}"]

db:
image: postgres:14.12
Expand Down

0 comments on commit 8a34426

Please sign in to comment.