Skip to content

Commit

Permalink
chore: upgrade github plugin versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nadin-Starkware committed Sep 24, 2024
1 parent 997f102 commit 6cb28f0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/papyrus_docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ env:

jobs:
docker-build-push:
runs-on: starkware-ubuntu-latest-medium
runs-on: ubuntu-latest

steps:
- name: Checkout repository
Expand All @@ -35,7 +35,13 @@ jobs:
# Also workaround for: https://github.com/docker/build-push-action/issues/461
# https://github.com/docker/setup-buildx-action
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2.2.1
uses: docker/setup-buildx-action@v3.6.1

# Set Rustup and Cargo directories to avoid cross-device issues
- name: Set Rustup and Cargo directories
run: |
export RUSTUP_HOME=/usr/local/rustup
export CARGO_HOME=/usr/local/cargo
# Login to a Docker registry except on PR
# https://github.com/docker/login-action
Expand All @@ -52,7 +58,7 @@ jobs:
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4.1.1
uses: docker/metadata-action@v5.5.1
with:
images: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}/papyrus
tags: |
Expand All @@ -67,7 +73,7 @@ jobs:
# Build and push Docker image with Buildx
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@v3.2.0
uses: docker/build-push-action@v6.7.0
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
Expand Down
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
# We start by creating a base image using 'clux/muslrust' with additional required tools.
FROM clux/muslrust:1.80.0-stable AS chef
WORKDIR /app

# Set environment variables to avoid cross-device issues
ENV RUSTUP_HOME=/usr/local/rustup
ENV CARGO_HOME=/usr/local/cargo

RUN apt update && apt install -y clang unzip
RUN cargo install cargo-chef
ENV PROTOC_VERSION=25.1
Expand All @@ -23,6 +28,11 @@ RUN rustup target add x86_64-unknown-linux-musl
# Stage 1 (planer): #
#####################
FROM chef AS planner
# Ensure Rust and Cargo files are on the same file system
ENV RUSTUP_HOME=/usr/local/rustup
ENV CARGO_HOME=/usr/local/cargo


COPY . .
# * Running Cargo Chef prepare that will generate recipe.json which will be used in the next stage.
RUN cargo chef prepare
Expand Down

0 comments on commit 6cb28f0

Please sign in to comment.