forked from matter-labs/zksync
-
Notifications
You must be signed in to change notification settings - Fork 10
38 lines (32 loc) · 947 Bytes
/
docker.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
name: Publish docker images
on:
push:
tags:
- '**.prover'
- '**.server'
- '**.dev-ticker'
- '**.environment'
jobs:
push_to_docker_hub:
name: Push server image to Docker Hub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "16.x"
- name: setup-env
run: |
echo ZKSYNC_HOME=$(pwd) >> $GITHUB_ENV
echo $(pwd)/bin >> $GITHUB_PATH
- name: Log in to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push image
run: |
zk
zk run verify-keys unpack
zk docker push-from-tag ${{github.ref_name}}