mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Merge branch 'GLIT-67-add-customized-rpc-methods-to-go-ethereum' of https://github.com/ReneVerse/go-ethereum into GLIT-67-add-customized-rpc-methods-to-go-ethereum
This commit is contained in:
commit
3e85aec014
3 changed files with 35 additions and 11 deletions
18
.github/workflows/docker.sh
vendored
18
.github/workflows/docker.sh
vendored
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
set -ex
|
||||
|
||||
image="ghcr.io/$GITHUB_REPOSITORY"
|
||||
image="$ECR_REGISTRY/$ECR_REPOSITORY"
|
||||
tag=$(git tag --points-at HEAD)
|
||||
|
||||
if [ -z "$tag" ]; then
|
||||
|
|
@ -10,7 +10,19 @@ if [ -z "$tag" ]; then
|
|||
fi
|
||||
|
||||
echo $image:$tag
|
||||
docker buildx create --name mybuilder --use || echo 'skip'
|
||||
docker buildx create --name mybuilder --use --bootstrap || echo 'skip'
|
||||
docker buildx inspect --bootstrap
|
||||
docker buildx build --platform linux/amd64,linux/arm64 -t $image:$tag --push .
|
||||
|
||||
dockerfile="./Dockerfile"
|
||||
docker buildx build \
|
||||
--progress plain \
|
||||
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
||||
--cache-from type=registry,ref=${image}:cache \
|
||||
--cache-to type=registry,image-manifest=true,oci-mediatypes=true,ref=${image}:cache,mode=max \
|
||||
--compress \
|
||||
--push \
|
||||
--platform linux/amd64,linux/arm64 \
|
||||
-t "$image:$tag" \
|
||||
-f "${dockerfile}" .
|
||||
docker buildx imagetools inspect $image:$tag
|
||||
echo "image=$image:$tag" >> $GITHUB_OUTPUT
|
||||
|
|
|
|||
26
.github/workflows/docker.yml
vendored
26
.github/workflows/docker.yml
vendored
|
|
@ -2,22 +2,34 @@ name: Docker
|
|||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
tags:
|
||||
- v*
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
timeout-minutes: 45
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: [self-hosted]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Login to ghcr.io
|
||||
env:
|
||||
PAT: ${{ secrets.GH_TOKEN }}
|
||||
run: printf "$PAT" | docker login --username _ --password-stdin ghcr.io
|
||||
- name: Configure AWS credentials
|
||||
uses: aws-actions/configure-aws-credentials@v4
|
||||
with:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: ${{ secrets.AWS_REGION }}
|
||||
|
||||
- name: Login to Amazon ECR
|
||||
id: login-ecr
|
||||
uses: aws-actions/amazon-ecr-login@v2
|
||||
|
||||
- name: Add exec permission to docker.sh
|
||||
run: chmod +x ./.github/workflows/docker.sh
|
||||
|
||||
- name: Build and push Docker images
|
||||
env:
|
||||
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
|
||||
ECR_REPOSITORY: glitchd-ecr-repository-${{ secrets.STAGE }}-geth
|
||||
run: ./.github/workflows/docker.sh
|
||||
|
|
|
|||
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
|
@ -6,7 +6,7 @@ on:
|
|||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: [self-hosted]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
|
|
|
|||
Loading…
Reference in a new issue