forked from erigontech/erigon
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(test): mainnet datastreamer test tweaks (#25)
* feat(test): mainnet datastreamer test tweaks * sequance check, build testimage --------- Co-authored-by: Anton <[email protected]>
- Loading branch information
1 parent
e90cd0d
commit 74f75e7
Showing
4 changed files
with
75 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Build and Push datastream test | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | ||
IMAGE_NAME: gatewayfm/cdk-erigon-datastream-test | ||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ env.DOCKERHUB_USERNAME }} | ||
password: ${{ env.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and Push Docker Image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: Dockerfile.test | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: ${{ env.IMAGE_NAME }}:${{ github.sha }} | ||
|
||
- name: Verify Image | ||
run: docker run --rm ${{ env.IMAGE_NAME }}:${{ github.sha }} --version |
This file contains 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM golang:1.19 AS base | ||
|
||
RUN apt-get update \ | ||
&& apt-get -y install make openssh-client ca-certificates && update-ca-certificates | ||
|
||
FROM base AS test | ||
|
||
WORKDIR /app | ||
|
||
ADD go.mod go.mod | ||
ADD go.sum go.sum | ||
|
||
RUN go mod download | ||
ADD . . | ||
|
||
ENTRYPOINT ["go", "run", "/app/zk/datastream/test/test.go"] |
This file contains 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
This file contains 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