Skip to content

Link to images from README #8

Link to images from README

Link to images from README #8

Workflow file for this run

# Create a container image with the Rust toolchain and the cargo-mutants binary.
#
# TODO: Maybe cross build to Arm using `cross` instead of running everything under emulation.
name: Build and Push Container Image
on:
push:
branches:
- main
- container
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository_owner }}/mutants
- name: Build and push container image
uses: docker/build-push-action@v6
with:
context: .
push: true
# platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }} ghcr.io/${{ github.repository_owner }}/mutants:latest
labels: ${{ steps.meta.outputs.labels }}
env:
SOURCE_DATE_EPOCH: 0