Skip to content

Commit a71da21

Browse files
authored
feat(l1): add a new manual docker publish for performance tag (#4053)
**Motivation** Have a manually triggered docker publish of our latest changes in performance. **Description** This PR adds a workflow which copy our current docker publish but instead of be triggered by push to main it can be just triggered manually.
1 parent 37f2517 commit a71da21

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Publish Docker
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
REGISTRY: ghcr.io
8+
IMAGE_NAME: ${{ github.repository }}
9+
10+
jobs:
11+
build-and-push-image:
12+
name: Build and push Docker image
13+
runs-on: ubuntu-latest
14+
15+
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
16+
permissions:
17+
contents: read
18+
packages: write
19+
attestations: write
20+
id-token: write
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
26+
- name: Log in to the Container registry
27+
uses: docker/login-action@v3
28+
with:
29+
registry: ${{ env.REGISTRY }}
30+
username: ${{ github.actor }}
31+
password: ${{ secrets.GITHUB_TOKEN }}
32+
33+
# Pushes to ghcr.io/lambdaclass/ethrex
34+
- name: Build and push Docker image
35+
id: push
36+
uses: docker/build-push-action@v6
37+
with:
38+
context: .
39+
push: true
40+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:performance

0 commit comments

Comments
 (0)