Skip to content

ci: well..

ci: well.. #5

Workflow file for this run

name: Release
# on:
# release:
# types: [published]
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
permissions:
id-token: write
packages: write
contents: read
attestations: write
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image
id: push
uses: docker/build-push-action@v6
with:
context: docker
push: true
# @todo: proper versioning
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:16
platforms: ${{ matrix.platform }}
- name: Attest
id: attest
uses: actions/attest-build-provenance@v2
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true