Skip to content

Commit c1aca0e

Browse files
committed
more iterations
1 parent d212120 commit c1aca0e

File tree

2 files changed

+24
-11
lines changed

2 files changed

+24
-11
lines changed

.github/workflows/docker-build.yml

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,41 @@ on:
55
branches:
66
- main
77

8+
env:
9+
REGISTRY: ghcr.io
10+
IMAGE_NAME: ${{ github.repository }}
11+
812
permissions:
913
contents: read
1014
packages: write
15+
attestations: write
16+
id-token: write
1117

1218
jobs:
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+

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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++ {

0 commit comments

Comments
 (0)