-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build docker image | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Checkout main | ||
uses: actions/checkout@v2 | ||
- name: Docker login | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Setup buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Build docker image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
push: true | ||
tags: ghcr.io/huangfusl/template:${{ github.ref_name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM texlive/texlive:latest | ||
|
||
# Install fonts | ||
RUN sed -i 's/testing/stable/g' /etc/apt/sources.list \ | ||
&& echo "deb http://deb.debian.org/debian stable contrib" >> /etc/apt/sources.list \ | ||
&& apt update \ | ||
&& apt install ttf-mscorefonts-installer fonts-noto-cjk -y \ | ||
&& apt clean | ||
|
||
COPY . /template | ||
ENV TEXINPUTS=/template//: | ||
|
||
VOLUME [ "/data" ] | ||
WORKDIR /data |