Skip to content

[R4R:] update op geth Dockerfile and add entrypoint.sh #1

[R4R:] update op geth Dockerfile and add entrypoint.sh

[R4R:] update op geth Dockerfile and add entrypoint.sh #1

name: Check Docker Build
on:
pull_request:
branches:
- main
- develop
- 'releases/**'
paths:
- 'Dockerfile'
- '**'
jobs:
CheckBuild:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@main
with:
submodules: recursive
token: ${{ secrets.PAT }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Checking Make Build
run: |
URL="https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files"
response=$(curl -H 'authorization: Bearer ${{ secrets.PAT }}' -H "Accept: application/vnd.github.v3+json" -s -X GET -G $URL)
UPDATEFILE_DIR=$(echo "${response}" | jq -r '.[] | .filename')
for i in ${UPDATEFILE_DIR};do
echo $i |grep Dockerfile
if [[ $? == 0 ]]
cmd="docker build -f UPDATEFILE_DIR -t $i:v1 ."
echo $cmd;$cmd
fi
done