-
Notifications
You must be signed in to change notification settings - Fork 323
66 lines (62 loc) · 1.89 KB
/
cairo-zero-release.yml
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
56
57
58
59
60
61
62
63
64
65
66
# trunk-ignore-all(checkov/CKV2_GHA_1)
name: cairo-zero-Release
on:
release:
types: [published]
# trunk-ignore(yamllint/empty-values)
workflow_dispatch:
env:
REGISTRY_IMAGE: ghcr.io/${{ github.repository }}/deployer
jobs:
build_and_push_docker_deployer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags:
${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}, ${{
env.REGISTRY_IMAGE }}:latest
context: .
file: ./docker/deployer/Dockerfile
platforms: linux/amd64,linux/arm64
build_and_push_artifacts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version-file: .python-version
- uses: asdf-vm/actions/install@v3
- run: asdf install
- uses: astral-sh/setup-uv@v2
with:
enable-cache: true
cache-dependency-glob: uv.lock
- name: Install dependencies
run: make setup
- name: Compile all the cairo files
run: make build
- name: Zip the build
run: zip -r build.zip build
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build.zip
asset_name: kakarot-build.zip
tag: ${{ github.ref_name }}
overwrite: true