Skip to content

Commit

Permalink
ci: add workflow for build nightly rust
Browse files Browse the repository at this point in the history
  • Loading branch information
otani88 committed Oct 2, 2023
1 parent adfddfc commit 4872881
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/release-please/config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"separate-pull-requests": true,
"group-pull-request-title-pattern": "chore: release ${component} ${branch}",
"bootstrap-sha": "a980ac61f484a3b6bdbe11e606977d0d92d4e9ff",
"bootstrap-sha": "531757b5eb98da80b7e6d0ff7ad9fd0b970cc109",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"packages": {
Expand Down
2 changes: 1 addition & 1 deletion .github/release-please/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk/zksync-web3.js": "0.15.4",
"sdk/zksync-rs": "0.4.0",
"core": "15.0.1",
"core": "15.0.2",
"prover": "7.1.1"
}
41 changes: 41 additions & 0 deletions .github/workflows/rust-nightly-environment.publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: publish zk-rust-nightly-environment docker image

on:
pull_request:
branches:
- main
types: [closed]
paths:
- "docker/zk-rust-nightly-environment/Dockerfile"
- ".github/workflows/rust-nightly-environment.publish.yml"
workflow_dispatch:
branches:
- "main"

jobs:
push_to_registry:
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
name: Push Docker image to Docker Hub
runs-on: [self-hosted, ci-runner]
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
with:
submodules: "recursive"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f03ac48505955848960e80bbb68046aa35c7b9e7 # v2

- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2.1.0
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # v4.0.0
with:
context: .
push: true
tags: "matterlabs/zksync_rust:nightly"
file: docker/zk-rust-nightly-environment/Dockerfile
no-cache: true

0 comments on commit 4872881

Please sign in to comment.