Skip to content

.github/workflows/scheduled-build.yml #2

.github/workflows/scheduled-build.yml

.github/workflows/scheduled-build.yml #2

on:
schedule:
- cron: "0 16 * * 2"
permissions:
packages: write
jobs:
build-docker:
runs-on: ubuntu-latest
name: Build Docker Image
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
ghcr.io/${{ github.repository_owner }}/latex:latest