Files
latex-container/.gitea/workflows/build.yml
Julian Pollinger b684857439
All checks were successful
Build Docker Image / build (push) Successful in 4m38s
rename to public org
2024-11-28 10:00:16 +01:00

51 lines
1.3 KiB
YAML

name: Build Docker Image
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *' # Runs daily at midnight
workflow_dispatch: # Allows manual triggering
jobs:
build:
runs-on: docker-builder
steps:
- uses: actions/checkout@v4
with:
lfs: true
submodules: true
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
git.pollinger.dev/public/texlive
tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: git.pollinger.dev
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max,image-manifest=true,oci-mediatypes=true