Skip to content

chore: bump v0.3.8

chore: bump v0.3.8 #8

Workflow file for this run

name: docker
on:
push:
tags:
- "v*"
permissions:
contents: read
packages: write
jobs:
build:
name: build + push (${{ matrix.backend }})
runs-on: ubuntu-latest
strategy:
matrix:
include:
- backend: sqlite
suffix: ""
- backend: postgres
suffix: "-postgres"
steps:
- uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@v6
with:
images: ghcr.io/${{ github.repository }}
# sqlite -> :latest, :0.3.0, :0.3 ; postgres -> the same with a
# -postgres suffix (onlatest keeps :latest-postgres aligned).
flavor: |
latest=false
suffix=${{ matrix.suffix }},onlatest=true
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=latest
- name: Build and push
uses: docker/build-push-action@v7
with:
context: .
build-args: |
DB_FEATURE=${{ matrix.backend }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha,scope=${{ matrix.backend }}
cache-to: type=gha,mode=max,scope=${{ matrix.backend }}