File tree Expand file tree Collapse file tree 2 files changed +24
-11
lines changed
Expand file tree Collapse file tree 2 files changed +24
-11
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - main
77
8+ env :
9+ REGISTRY : ghcr.io
10+ IMAGE_NAME : ${{ github.repository }}
11+
812permissions :
913 contents : read
1014 packages : write
15+ attestations : write
16+ id-token : write
1117
1218jobs :
1319 build :
1420 runs-on : ubuntu-latest
1521 steps :
16- - name : Checkout code
22+ - name : Checkout repository
1723 uses : actions/checkout@v4
1824
19- - name : Set up Docker Buildx
20- uses : docker/setup-buildx-action@v3
25+ - name : Log in to the Container registry
26+ uses : docker/login-action@v3
27+ with :
28+ registry : ${{ env.REGISTRY }}
29+ username : ${{ github.actor }}
30+ password : ${{ secrets.GITHUB_TOKEN }}
2131
22- - name : Build Docker image
32+ - name : Extract metadata (tags, labels) for Docker
33+ id : meta
34+ uses : docker/metadata-action@v5
35+ with :
36+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
37+
38+ - name : Build and push Docker image
2339 uses : docker/build-push-action@v5
2440 with :
2541 context : .
2642 push : true
27- tags : ghcr.io/${{ github.repository }}:latest
28- cache-from : type=gha
29- cache-to : type=gha,mode=max
30- registry : ghcr.io
31- username : ${{ github.actor }}
32- password : ${{ secrets.GITHUB_TOKEN }}
43+ tags : ${{ steps.meta.outputs.tags }}
44+ labels : ${{ steps.meta.outputs.labels }}
45+
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ func main() {
9292 log .Fatalf ("Failed to get network ID: %v" , err )
9393 }
9494
95- iterations := 3
95+ iterations := 500
9696
9797 log .Printf ("Starting flashblock transactions" )
9898 for i := 0 ; i < iterations ; i ++ {
You can’t perform that action at this time.
0 commit comments