Add Dockerfile and GitHub Actions workflow for building Docker image
All checks were successful
Build Docker image / build (push) Successful in 1h59m36s
All checks were successful
Build Docker image / build (push) Successful in 1h59m36s
This commit is contained in:
commit
6644de29c7
2 changed files with 37 additions and 0 deletions
25
.forgejo/workflows/build.yaml
Normal file
25
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: Build Docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: code.edgarpierre.fr
|
||||
username: ${{ vars.DOCKER_PUSH_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PUSH_PASSWORD }}
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: code.edgarpierre.fr/${{ github.repository }}:${{ github.ref_name }}
|
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
|||
FROM code.edgarpierre.fr/actions/uv-act:main
|
||||
|
||||
USER root
|
||||
RUN cd /tmp && \
|
||||
curl -LO https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz && \
|
||||
zcat < install-tl-unx.tar.gz | tar xvf - && \
|
||||
cd install-tl-2* && \
|
||||
perl ./install-tl --no-interaction
|
||||
|
||||
ENV PATH="/usr/local/texlive/2025/bin/x86_64-linux:$PATH"
|
||||
|
||||
USER uv
|
Loading…
Add table
Add a link
Reference in a new issue