-
Notifications
You must be signed in to change notification settings - Fork 12
v1: Initial implementation #1
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
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
5429074
feat: add the following:
PJColombo 1cedc0f
chore: remove unused deps
PJColombo 3f2068e
feat: add the following:
PJColombo 32b1815
refactor: modularize beacon chain API logic
PJColombo 094fd52
feat: implement logging
PJColombo 7a3e3d7
refactor: modularize utility functions
PJColombo 509c7f9
refactor:
PJColombo fca6b62
fix: treat missing env vars error + rename connection uri variable
PJColombo 6d31c18
docs: add `README.md`
PJColombo 68c3b47
refactor: rearrange context declarations
PJColombo 1f3e39c
ci: fix CD workflow
0xGabi 63f8d1e
Merge pull request #6 from Blobscan/fix-cd
0xGabi ed3a0b2
refactor: add the following:
PJColombo 7e34f78
fix(BeaconChainAPI):
PJColombo 27c095b
fix(BeaconChainAPI): display request error + fix beacon block endpoint
PJColombo 05ef71c
refactor: propagate errors + improve general types (block, tx and blob)
PJColombo 56f2754
feat(BeaconChainAPI): add timeout
PJColombo 4c2386c
refactor(slots): refactor slot processing logic into a slot processor…
PJColombo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
MONGODB_URI= | ||
MONGODB_DB= | ||
DB_CONNECTION_URI= | ||
DB_NAME= | ||
|
||
# Optional variables | ||
EXECUTION_NODE_URL= | ||
BEACON_NODE_RPC= | ||
LOGGER= |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,38 @@ | ||
name: Continous Deployment | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
- "master" | ||
tags: | ||
- v* | ||
env: | ||
# This is a base repository and we use git refs to set the version of the container | ||
# ${GITHUB_REF##*/} will be either a branch name or a tag depending on the event | ||
REPO: blossomlabs/blob-indexer | ||
- "v*" | ||
pull_request: | ||
branches: | ||
- "master" | ||
|
||
jobs: | ||
build: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: docker login -u ${{secrets.DOCKERHUB_USER}} -p ${{secrets.DOCKERHUB_TOKEN}} | ||
- run: .github/scripts/docker-build.sh . $REPO ${GITHUB_SHA} | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: docker login -u ${{secrets.DOCKERHUB_USER}} -p ${{secrets.DOCKERHUB_TOKEN}} | ||
- run: .github/scripts/docker-release.sh $REPO:${GITHUB_SHA} $REPO:${GITHUB_REF##*/} | ||
- run: .github/scripts/docker-release.sh $REPO:${GITHUB_SHA} $REPO:latest | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: blossomlabs/blobscan-indexer | ||
- name: Login to DockerHub | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
debug/ | ||
target/ | ||
|
||
.env | ||
.env | ||
|
||
logs/ |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.