Skip to content

Build and Upload Docker Image as Artifact #5

Build and Upload Docker Image as Artifact

Build and Upload Docker Image as Artifact #5

name: Build and Upload Docker Image as Artifact
on:
workflow_dispatch:
jobs:
build-and-upload:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image
run: docker build -t rusk --build-arg CARGO_FEATURES="archive" .
- name: Save Docker image
run: docker save rusk:latest -o rusk_image.tar
- name: Upload Docker image as artifact
uses: actions/upload-artifact@v4
with:
name: rusk-image
path: rusk_image.tar