Skip to content

feat: bump upload-artifact action #4

feat: bump upload-artifact action

feat: bump upload-artifact action #4

Workflow file for this run

name: release
on:
push:
tags:
- 'v*'
env:
IMAGE_NAME: monadfoundation/soteria
jobs:
artifacts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo build --release --locked --all-features -v
- name: Upload release version artifact
uses: actions/upload-artifact@v4
with:
name: soteria
path: ./target/release/soteria
docker:
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}
- name: Build and push image
uses: docker/build-push-action@v6
with:
push: true
sbom: true
provenance: mode=max
tags: ${{ steps.meta.outputs.tags }}