34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
name: Build and publish Docker image
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
tags: ["v*"]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: docker
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
# The product-demo videos and their poster JPGs live in Git LFS
|
|
# (see .gitattributes). Without this, checkout writes ~130-byte LFS
|
|
# pointer text files, the Docker build copies those stubs into
|
|
# frontend/dist/video/*, and the server serves text as video/mp4 —
|
|
# so the videos never load in production. Smudge the real binaries.
|
|
with:
|
|
lfs: true
|
|
|
|
- name: Build and publish main image
|
|
uses: http://forgejo:3000/andras/ci-actions/docker-publish@main
|
|
with:
|
|
context: .
|
|
token: ${{ secrets.FORGEJO_PACKAGE_TOKEN }}
|
|
|
|
- name: Build and publish screenshot image
|
|
uses: http://forgejo:3000/andras/ci-actions/docker-publish@main
|
|
with:
|
|
context: ./screenshot
|
|
image-suffix: -screenshot
|
|
token: ${{ secrets.FORGEJO_PACKAGE_TOKEN }}
|