Skip to content

Slim down image by building with musl and copying into scratch stage #12

Slim down image by building with musl and copying into scratch stage

Slim down image by building with musl and copying into scratch stage #12

Workflow file for this run

name: Create and publish a Docker image
on:
push:
paths:
- 'src/**'
- '.github/workflows/**'
- 'Dockerfile'
- 'Cargo.toml'
- 'Cargo.lock'
workflow_dispatch:
jobs:
build:
uses: docker/github-builder/.github/workflows/build.yml@v1
permissions:
contents: read
id-token: write
packages: write
with:
output: image
push: true
platforms: linux/amd64,linux/arm64
meta-images: ghcr.io/${{ github.repository }}
meta-tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
secrets:
registry-auths: |
- registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}