Skip to content

web: bump the npm-minor-patch group in /web with 2 updates #6

web: bump the npm-minor-patch group in /web with 2 updates

web: bump the npm-minor-patch group in /web with 2 updates #6

Workflow file for this run

name: Docker
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: docker-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
verify:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v7
- uses: docker/setup-buildx-action@v4
- uses: docker/build-push-action@v7
with:
context: .
load: true
tags: matcharr:ci
cache-from: type=gha
- name: Smoke test
run: |
docker run -d --name matcharr-ci -p 8585:8585 \
-e MATCHARR__TMDB__APIKEY=ci-smoke matcharr:ci
for _ in $(seq 30); do
if curl -fsS http://localhost:8585/healthz >/dev/null; then
docker rm -f matcharr-ci >/dev/null
exit 0
fi
sleep 1
done
docker logs matcharr-ci
docker rm -f matcharr-ci >/dev/null
exit 1
publish:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- uses: actions/checkout@v7
- id: image
run: echo "ref=ghcr.io/${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT"
- uses: docker/setup-qemu-action@v4
- uses: docker/setup-buildx-action@v4
- uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v6
with:
images: ${{ steps.image.outputs.ref }}
tags: |
type=edge,branch=main
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha,format=short
labels: |
org.opencontainers.image.title=matcharr
org.opencontainers.image.description=Tinder-style group movie picker for a home media server
- id: build
uses: docker/build-push-action@v7
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}
sbom: true
cache-from: type=gha
cache-to: type=gha,mode=max
- uses: actions/attest-build-provenance@v4
with:
subject-name: ${{ steps.image.outputs.ref }}
subject-digest: ${{ steps.build.outputs.digest }}
push-to-registry: true