Skip to content

Build with pdf2htmlEX #443

Build with pdf2htmlEX

Build with pdf2htmlEX #443

Workflow file for this run

name: docker
on:
push:
branches:
- main
pull_request:
jobs:
test_image:
runs-on: ubuntu-24.04
permissions:
packages: write
steps:
- name: checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
ghcr.io/${{ github.repository_owner }}/odr_core_test
# generate Docker tags based on the following events/attributes
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=raw,value=latest,enable={{is_default_branch}}
type=sha
- name: Build and push
uses: docker/build-push-action@v5
with:
context: test/docker
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/odr_core_test:buildcache
cache-to: type=registry,ref=ghcr.io/${{ github.repository_owner }}/odr_core_test:buildcache,mode=max
# TODO try to run it