-
Notifications
You must be signed in to change notification settings - Fork 8
48 lines (40 loc) · 1.27 KB
/
release_container.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
name: release
on:
pull_request:
jobs:
release_proxy_server:
runs-on: ubuntu-20.04-16c-64g
defaults:
run:
working-directory: ./proxy_server
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Sanity Check
run: |
cat /proc/cpuinfo
- name: Setup Rust
uses: ./.github/actions/setup-rust
with:
caller-workflow-name: test
- name: Clippy check
run: cargo clippy --all-features --all-targets --tests -- -D warnings
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# see https://docs.docker.com/build/ci/github-actions/cache/#cache-backend-api
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PWD }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: ./proxy_server
push: true
tags: jitolabs/block-engine-proxy-server:${{ github.sha }}, jitolabs/block-engine-proxy-server:latest
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/arm64,linux/x86_64