Skip to content

Move SCUTBOT PDF under tools path #5

Move SCUTBOT PDF under tools path

Move SCUTBOT PDF under tools path #5

name: Build SCUTBOT PDF Image
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
packages: write
concurrency:
group: scutbot-pdf-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository_owner }}/bentopdf
tags: |
type=raw,value=pdf
type=raw,value=pdf-{{sha}}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.scutbot
push: true
platforms: linux/amd64
build-args: |
BASE_URL=/tools/pdf/
SIMPLE_MODE=true
VITE_DEFAULT_LANGUAGE=zh
SITE_URL=https://web.scutbot.cn
VITE_BRAND_NAME=SCUTBOT PDF
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha,scope=scutbot-pdf
cache-to: type=gha,mode=max,scope=scutbot-pdf