Merge pull request #14 from blockworks-foundation/groovie/fix-build-MAN-63
fix build by updating toolchain to 1.71.1
This commit is contained in:
commit
0f2da1c076
|
@ -2,7 +2,9 @@ name: Publish Docker Image
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
branches:
|
||||
- main
|
||||
- experimental-github-actions
|
||||
|
||||
env:
|
||||
IMAGE: mango-feeds
|
||||
|
@ -13,11 +15,17 @@ jobs:
|
|||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Set rust version
|
||||
run: |
|
||||
source ci/rust-version.sh
|
||||
echo "RUST_STABLE=$rust_stable" | tee -a $GITHUB_ENV
|
||||
|
||||
# Use docker buildx
|
||||
- name: Use docker buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
@ -39,6 +47,8 @@ jobs:
|
|||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
build-args: |
|
||||
RUST_TOOLCHAIN_VERSION=${{ env.RUST_STABLE }}
|
||||
push: true
|
||||
tags: |
|
||||
${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }}:${{ github.sha }}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# syntax = docker/dockerfile:1.2
|
||||
# Base image containing all binaries, deployed to gcr.io/mango-markets/mango-geyser-services:latest
|
||||
FROM rust:1.65.0 as base
|
||||
ARG RUST_TOOLCHAIN_VERSION
|
||||
FROM rust:${RUST_TOOLCHAIN_VERSION}-bullseye as base
|
||||
RUN cargo install cargo-chef
|
||||
RUN rustup component add rustfmt
|
||||
RUN apt-get update && apt-get install -y clang cmake ssh
|
||||
|
|
Loading…
Reference in New Issue