-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathblockifier_reexecution_docker_publish.yml
More file actions
55 lines (48 loc) · 1.57 KB
/
blockifier_reexecution_docker_publish.yml
File metadata and controls
55 lines (48 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Blockifier-Reexecution-Docker-Publish
on:
workflow_dispatch:
push:
tags:
- "v*.*.*"
- "APOLLO-*"
permissions:
contents: read
packages: write
env:
REGISTRY: ghcr.io
IMAGE: ghcr.io/${{ github.repository }}/blockifier-reexecution
jobs:
docker-build-push:
runs-on: namespace-profile-small-ubuntu-24-04-amd64
timeout-minutes: 60
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Login to registry ${{ env.REGISTRY }}
uses: docker/login-action@v2.1.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
logout: true
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4.1.1
with:
images: ${{ env.IMAGE }}
tags: |
# Tag-based releases
type=raw,enable=${{ startsWith(github.ref, 'refs/tags/') && 'true' || 'false' }},value={{tag}}
type=semver,pattern={{raw}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
# Manual workflow dispatch
type=raw,value={{branch}}{{tag}}-{{sha}},enable=${{ github.event_name == 'workflow_dispatch' }}
- name: Build and push Docker image
uses: docker/build-push-action@v6.13.0
with:
context: .
file: crates/blockifier_reexecution/replay/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}