From e6a10767d0e2ad97cd78e6227d2b175d34272ae5 Mon Sep 17 00:00:00 2001 From: nukopy Date: Sat, 28 Oct 2023 20:00:20 +0900 Subject: [PATCH 01/19] Start issue #3 From fa9e2cd818b052954ed1cab5c6b4b469a06fea41 Mon Sep 17 00:00:00 2001 From: nukopy Date: Sun, 29 Oct 2023 00:56:40 +0900 Subject: [PATCH 02/19] feat: update TeX Live to 2023 ver. --- Dockerfile | 42 +++++++++++++++++++++++++++++++----------- Makefile | 7 +++++-- entrypoint.sh | 7 +++++++ 3 files changed, 43 insertions(+), 13 deletions(-) create mode 100644 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index c835db3..91d429b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,15 +2,15 @@ FROM ubuntu:22.04 ENV DEBIAN_FRONTEND noninteractive -ARG ARCHIVE_URL="https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz" -ARG TEXLIVE_VERSION="2022" - # Set uid and gid to the current user -# ENV USER $(whoami) -ENV UID $(id -u) -ENV GID $(id -g) +ARG USER +ARG UID +ARG GID +# -------------------------------------- # Install general packages +# -------------------------------------- + RUN apt-get update && \ apt-get install -y --no-install-recommends \ build-essential \ @@ -27,20 +27,33 @@ RUN apt-get update && \ apt-get autoclean -y && \ rm -rf /var/lib/apt/lists/* +# -------------------------------------- # Install TeX Live # ref: https://tug.org/texlive/quickinstall.html, https://github.com/Paperist/texlive-ja/blob/main/debian/Dockerfile +# -------------------------------------- + +# Set ARG for installation of TeX Live +ARG ARCHIVE_URL="https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz" +ARG TEXLIVE_VERSION="2023" + +# Install TeX Live WORKDIR /tmp/install-tl-unx COPY ./texlive.profile ./ RUN wget -nv ${ARCHIVE_URL} && \ tar -xzf ./install-tl-unx.tar.gz --strip-components=1 && \ - ./install-tl --profile=./texlive.profile && \ + ./install-tl --profile=./texlive.profile --no-interaction && \ rm -rf /tmp/install-tl-unx -# Add TeX Live to PATH -ENV PATH /usr/local/texlive/${TEXLIVE_VERSION}/bin/x86_64-linux:$PATH +# -------------------------------------- +# Install LaTeX packages +# -------------------------------------- # Install LaTeX packages with tlmgr -RUN tlmgr update --self --all && tlmgr install \ +# `entrypoint.sh` is used to add TeX Live binaries to PATH +COPY ./entrypoint.sh / +RUN chmod +x /entrypoint.sh +RUN . /entrypoint.sh && \ + tlmgr update --self --all && tlmgr install \ collection-basic \ collection-latexrecommended \ collection-xetex \ @@ -54,11 +67,18 @@ RUN tlmgr update --self --all && tlmgr install \ beamer \ latexmk \ latexindent + +# Copy latexmk config file COPY .latexmkrc /root # Install perl packages which are requirements of "latexindent" RUN cpanm Log::Log4perl Log::Dispatch::File YAML::Tiny File::HomeDir Unicode::GCString +# -------------------------------------- +# Setting for workspace +# -------------------------------------- + WORKDIR /workdir -CMD ["bash"] \ No newline at end of file +ENTRYPOINT ["/entrypoint.sh"] +CMD ["bash"] diff --git a/Makefile b/Makefile index 26fc7f1..5b6edfe 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ IMAGE_NAME := nukopy/ubuntu-texlive-ja -TAG := latest -# TAG := texlive2022 +TAG := texlive2023 + +.PHONY: run +run: + docker run --rm -it -v $(PWD):/workdir -u $(id -u):$(id -g) $(IMAGE_NAME):$(TAG) .PHONY: test test: diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..218d447 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# add TeX Live binaries to PATH +export PATH=/usr/local/texlive/${TEXLIVE_VERSION}/bin/$(uname -m)-linux:$PATH + +# entrypoint +exec "$@" From c87b521c47d05e88423021016680ff77bdc965e8 Mon Sep 17 00:00:00 2001 From: nukopy Date: Sun, 29 Oct 2023 00:59:45 +0900 Subject: [PATCH 03/19] docs: enhance README --- README.md | 86 ++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 76 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index d64c4a9..30d70e1 100644 --- a/README.md +++ b/README.md @@ -1,40 +1,106 @@ # ubuntu-texlive-ja -![Docker Automated build](https://img.shields.io/docker/automated/nukopy/ubuntu-texlive-ja) ![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/nukopy/ubuntu-texlive-ja/texlive2022) +![Docker Automated Build](https://img.shields.io/docker/automated/nukopy/ubuntu-texlive-ja) ![Docker Image Size](https://img.shields.io/docker/image-size/nukopy/ubuntu-texlive-ja) ![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/nukopy/ubuntu-texlive-ja/texlive2022) Docker image for writing environment for Japanese documents with TeX Live / LaTeX - Docker Hub: [nukopy/ubuntu-texlive-ja](https://hub.docker.com/repository/docker/nukopy/ubuntu-texlive-ja) -## Tests +## Supported Platforms + +- [x] `linux/amd64` +- [x] `linux/arm64v8` + +See [more info](https://github.com/docker-library/official-images#architectures-other-than-amd64). + +## Installation + +```sh +docker pull nukopy/ubuntu-texlive-ja +``` + +## Usage + +```sh +docker run --rm -it -v $(pwd):/workdir nukopy/ubuntu-texlive-ja +latexmk -pvc main.tex +``` + +## for Developers: Checklist for Version up of TeX Live + +- [ ] Update the environment variable `TEXLIVE_VERSION` in `Dockerfile` is updated to the new version +- [ ] Update the variable `TAG` in `Makefile` is updated to the new version +- [ ] Build Docker image with tag of new version +- [ ] Run tests for the new version +- [ ] Push Docker image to Docker Hub + +### Build + +- Build Docker image with tag of new version + +```sh +docker build . -t nukopy/ubuntu-texlive-ja:[tag] +``` + +- Build Docker image with tag of new version for multi-platforms + +```sh +docker buildx build . --platform linux/amd64,linux/arm64 -t nukopy/ubuntu-texlive-ja:[tag] +``` + +### Tests ```sh -git clone git@github.com:nukopy/ubuntu-texlive-ja.git -cd ubuntu-texlive-ja/ -docker pull nukopy/ubuntu-texlive-ja:latest make test make test-slide # test for beamer ``` -## Commands for Docker Hub +### Push Docker image to Docker Hub To deploy new Docker image to Docker Hub, run the following commands: +- Before push to Docker Hub, login to Docker Hub + ```sh docker login -docker build . -t nukopy/ubuntu-texlive-ja:[tag] +``` + +- Push Docker image to Docker Hub + +```sh docker push nukopy/ubuntu-texlive-ja:[tag] ``` +- Push Docker image to Docker Hub for multi-platforms + +```sh +docker buildx build . --platform linux/amd64,linux/arm64 -t nukopy/ubuntu-texlive-ja:[tag] --push +``` + ## References -The repository is based on the following repositories: +Official documentation of TeX Live: + +- [TeX Live - TeX Users Group](https://tug.org/texlive/) + - TeX Live HP +- [TeX Live Guide 2022 - TeX Users Group(ja)](https://tug.org/texlive/doc/texlive-ja/texlive-ja.pdf) + - An installation guide in Japanese +- [install-tl - TeX Live cross-platform installer](https://tug.org/texlive/doc/install-tl.html) + - Documentation of TeX Live Installer `install-tl` + +Blog posts about TeX Live: + +- [(2017) TexLive の コレクションについて](https://takec.hatenablog.jp/entry/2017/09/18/091532) + +This repository is inspired by the following repositories: - [Paperist/docker-alpine-texlive-ja](https://github.com/Paperist/docker-alpine-texlive-ja) - [johejo/debian-latex-jp](https://github.com/johejo/debian-latex-jp) - [t-hishinuma/tex-docker](https://github.com/t-hishinuma/tex-docker) - [csg-projects/latexindent-dockerfile](https://github.com/csg-projects/latexindent-dockerfile) -An installation guide in Japanese is below: +Official documentation of Docker: -- [TeX Live Guide 2022 - TeX Users Group(ja)](https://tug.org/texlive/doc/texlive-ja/texlive-ja.pdf) +- [Multi-platform images | Docker Docs](https://docs.docker.com/build/building/multi-platform/) +- [`docker buildx build` | docker docs](https://docs.docker.com/engine/reference/commandline/buildx_build/) +- [github.com/docker-library/official-images - Architectures other than amd64?](https://github.com/docker-library/official-images#architectures-other-than-amd64) From 9d803835d010ad32e9fd2b2fdb26abd224587edd Mon Sep 17 00:00:00 2001 From: nukopy Date: Sun, 29 Oct 2023 01:01:07 +0900 Subject: [PATCH 04/19] ci: add a GitHub Actions workflow to deploy (build & push to Docker Hub) when a tag pushed --- .github/workflows/deploy.yml | 50 ++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..e1ef86b --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,50 @@ +name: Build and Push Docker Image + +on: + push: + tags: + - '*' + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Cache Docker layers + uses: actions/cache@v3 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- + + - name: Build and push Docker image to Docker Hub + uses: docker/build-push-action@v5 + with: + context: . + push: true + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new + platforms: linux/amd64,linux/arm64/v8 + tags: ${{ github.repository }}:${{ github.ref_name }} + + # On local cache, old cache entries aren't removed, so we need to remove them manually. + # ref: https://docs.docker.com/build/ci/github-actions/cache/ + - name: Remove and move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache From 9fdb137d070c754e95237b3501ac993ff897a1ef Mon Sep 17 00:00:00 2001 From: nukopy Date: Sun, 29 Oct 2023 01:05:23 +0900 Subject: [PATCH 05/19] chore: empty commit for test CI when a tag pushed From 67cacbd68ff31c42affd418e68f83449a5d8b4d0 Mon Sep 17 00:00:00 2001 From: nukopy Date: Sun, 29 Oct 2023 01:22:03 +0900 Subject: [PATCH 06/19] docs: enhance README --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 30d70e1..75e30e1 100644 --- a/README.md +++ b/README.md @@ -2,16 +2,19 @@ ![Docker Automated Build](https://img.shields.io/docker/automated/nukopy/ubuntu-texlive-ja) ![Docker Image Size](https://img.shields.io/docker/image-size/nukopy/ubuntu-texlive-ja) ![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/nukopy/ubuntu-texlive-ja/texlive2022) -Docker image for writing environment for Japanese documents with TeX Live / LaTeX +Docker image for writing environment for Japanese documents with LaTeX / TeX Live - Docker Hub: [nukopy/ubuntu-texlive-ja](https://hub.docker.com/repository/docker/nukopy/ubuntu-texlive-ja) ## Supported Platforms -- [x] `linux/amd64` -- [x] `linux/arm64v8` +This Docker image supports: -See [more info](https://github.com/docker-library/official-images#architectures-other-than-amd64). +- `linux/amd64` (TeX Live x86_64-linux build) +- `linux/arm64v8` (TeX Live aarch64-linux build) + +Platforms supported by Docker are [here](https://github.com/docker-library/official-images#architectures-other-than-amd64).
+Platforms supported by TeX Live are [here](https://tug.org/texlive/doc.html#:~:text=Perl%C2%A0modules.-,Supported%20systems,-If%20you%20can). ## Installation From d5b9598adcef730026af49d27acc6eb3055f31c0 Mon Sep 17 00:00:00 2001 From: nukopy Date: Sun, 29 Oct 2023 01:33:20 +0900 Subject: [PATCH 07/19] refactor: for readability --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 91d429b..78c5f6c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,10 +48,11 @@ RUN wget -nv ${ARCHIVE_URL} && \ # Install LaTeX packages # -------------------------------------- -# Install LaTeX packages with tlmgr -# `entrypoint.sh` is used to add TeX Live binaries to PATH +# Copy `entrypoint.sh` for adding TeX Live binaries to PATH COPY ./entrypoint.sh / RUN chmod +x /entrypoint.sh + +# Install LaTeX packages with tlmgr RUN . /entrypoint.sh && \ tlmgr update --self --all && tlmgr install \ collection-basic \ From 0d028e5911e3ae560130a6f1b0b0efce15266c2b Mon Sep 17 00:00:00 2001 From: nukopy Date: Sun, 29 Oct 2023 01:35:31 +0900 Subject: [PATCH 08/19] ci: rename a workflow --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e1ef86b..08e3d90 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: Build and Push Docker Image +name: Deploy - Build and Push Docker Image to Docker Hub on: push: From 5c769800bb92a7cd817b13e5d734b7f386919ff8 Mon Sep 17 00:00:00 2001 From: nukopy Date: Sun, 29 Oct 2023 02:23:27 +0900 Subject: [PATCH 09/19] docs: enhance README --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 75e30e1..46f779f 100644 --- a/README.md +++ b/README.md @@ -25,10 +25,15 @@ docker pull nukopy/ubuntu-texlive-ja ## Usage ```sh +# on local machine docker run --rm -it -v $(pwd):/workdir nukopy/ubuntu-texlive-ja -latexmk -pvc main.tex + +# in Docker container +latexmk -pvc test/document/main.tex ``` +You can create TeX documents in any location and with any filename you prefer. Try to create `.tex` and `latexmk -pvc path/to/.tex` in the container. + ## for Developers: Checklist for Version up of TeX Live - [ ] Update the environment variable `TEXLIVE_VERSION` in `Dockerfile` is updated to the new version From 131e9a1ef49ba001d268b351a037a57141e3965d Mon Sep 17 00:00:00 2001 From: nukopy Date: Sun, 29 Oct 2023 03:21:29 +0900 Subject: [PATCH 10/19] refactor: rename entrypoint.sh to readability --- entrypoint.sh => docker-entrypoint.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename entrypoint.sh => docker-entrypoint.sh (100%) diff --git a/entrypoint.sh b/docker-entrypoint.sh similarity index 100% rename from entrypoint.sh rename to docker-entrypoint.sh From 03599eec0ebf50b2896ee628658180237ec355b4 Mon Sep 17 00:00:00 2001 From: nukopy Date: Sun, 29 Oct 2023 03:23:19 +0900 Subject: [PATCH 11/19] fix: change `TEXLIVE_VERSION` from ARG to ENV to refer to it in `docker-entrypoint.sh` --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 78c5f6c..54e8925 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,9 +32,10 @@ RUN apt-get update && \ # ref: https://tug.org/texlive/quickinstall.html, https://github.com/Paperist/texlive-ja/blob/main/debian/Dockerfile # -------------------------------------- -# Set ARG for installation of TeX Live +# Set ARG and ENV for installation of TeX Live +# `TEXLIVE_VERSION` is used on `entrypoint.sh` ARG ARCHIVE_URL="https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz" -ARG TEXLIVE_VERSION="2023" +ENV TEXLIVE_VERSION "2023" # Install TeX Live WORKDIR /tmp/install-tl-unx From 2c3dd64b85d137cfc7c807bfbaad324e0ff7df03 Mon Sep 17 00:00:00 2001 From: nukopy Date: Sun, 29 Oct 2023 03:24:01 +0900 Subject: [PATCH 12/19] fix(docs): wrong usage --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 46f779f..b058e90 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,9 @@ docker pull nukopy/ubuntu-texlive-ja docker run --rm -it -v $(pwd):/workdir nukopy/ubuntu-texlive-ja # in Docker container -latexmk -pvc test/document/main.tex +cd ./test/document +latexmk -pvc ./main.tex +# When you edit ./main.tex, ./main.pdf is automatically updated. ``` You can create TeX documents in any location and with any filename you prefer. Try to create `.tex` and `latexmk -pvc path/to/.tex` in the container. From 23c58264e4cd150a88d12c49543521ba95c989c5 Mon Sep 17 00:00:00 2001 From: nukopy Date: Sun, 29 Oct 2023 03:24:55 +0900 Subject: [PATCH 13/19] chore: empty commit for test CI when a tag pushed From d25de73fe3335da880a0c3e2324d92daba9c3bf9 Mon Sep 17 00:00:00 2001 From: nukopy Date: Sun, 29 Oct 2023 03:30:44 +0900 Subject: [PATCH 14/19] fix: forgot to change filename from `entrypoint.sh` to `docker-entrypoint.sh` in `Dockerfile` --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 54e8925..9c101ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,7 @@ RUN apt-get update && \ # -------------------------------------- # Set ARG and ENV for installation of TeX Live -# `TEXLIVE_VERSION` is used on `entrypoint.sh` +# `TEXLIVE_VERSION` is used on `docker-entrypoint.sh` ARG ARCHIVE_URL="https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz" ENV TEXLIVE_VERSION "2023" @@ -49,12 +49,12 @@ RUN wget -nv ${ARCHIVE_URL} && \ # Install LaTeX packages # -------------------------------------- -# Copy `entrypoint.sh` for adding TeX Live binaries to PATH -COPY ./entrypoint.sh / -RUN chmod +x /entrypoint.sh +# Copy `docker-entrypoint.sh` for adding TeX Live binaries to PATH +COPY ./docker-entrypoint.sh / +RUN chmod +x /docker-entrypoint.sh # Install LaTeX packages with tlmgr -RUN . /entrypoint.sh && \ +RUN . /docker-entrypoint.sh && \ tlmgr update --self --all && tlmgr install \ collection-basic \ collection-latexrecommended \ @@ -82,5 +82,5 @@ RUN cpanm Log::Log4perl Log::Dispatch::File YAML::Tiny File::HomeDir Unicode::GC WORKDIR /workdir -ENTRYPOINT ["/entrypoint.sh"] +ENTRYPOINT ["/docker-entrypoint.sh"] CMD ["bash"] From e40967cc3b9a18f18e7cab8396e93f3020e9f9c6 Mon Sep 17 00:00:00 2001 From: nukopy Date: Sun, 29 Oct 2023 03:46:28 +0900 Subject: [PATCH 15/19] chore: add TAG for test `test-ci` in comment --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 5b6edfe..4244027 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ IMAGE_NAME := nukopy/ubuntu-texlive-ja TAG := texlive2023 +# TAG := test-ci .PHONY: run run: From ed1aa8f22acbfb51a2ac139913a987794ab8cdcd Mon Sep 17 00:00:00 2001 From: nukopy Date: Sun, 29 Oct 2023 03:47:15 +0900 Subject: [PATCH 16/19] docs: enhance README --- README.md | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b058e90..190c973 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,11 @@ You can create TeX documents in any location and with any filename you prefer. T - [ ] Update the environment variable `TEXLIVE_VERSION` in `Dockerfile` is updated to the new version - [ ] Update the variable `TAG` in `Makefile` is updated to the new version - [ ] Build Docker image with tag of new version -- [ ] Run tests for the new version +- [ ] Run tests for the new version with Docker container built on local - [ ] Push Docker image to Docker Hub +- [ ] Run tests for the new version with Docker container pulled from Docker Hub + +If the last step is passed, release the new version! ### Build @@ -58,7 +61,7 @@ docker build . -t nukopy/ubuntu-texlive-ja:[tag] docker buildx build . --platform linux/amd64,linux/arm64 -t nukopy/ubuntu-texlive-ja:[tag] ``` -### Tests +### Tests with Docker container built on local ```sh make test @@ -87,6 +90,24 @@ docker push nukopy/ubuntu-texlive-ja:[tag] docker buildx build . --platform linux/amd64,linux/arm64 -t nukopy/ubuntu-texlive-ja:[tag] --push ``` +### Tests with Docker container pulled from Docker Hub + +In this repository, build and push Docker image to Docker Hub with [GitHub Actions workflow](https://github.com/nukopy/ubuntu-texlive-ja/actions) automatically when tags are pushed to GitHub repository. + +For tests, push Docker image to Docker Hub with a tag for test like `test-ci`. Don't use tags like `texlive2023` on test because it is used for release versions. + +```sh +# push a tag for test +git tag -a test-ci -m "Release test-ci :tada:" && git push origin test-ci + +# pull Docker image with a tag for test from Docker Hub +docker pull nukopy/ubuntu-texlive-ja:test-ci + +# before run tests, you should change the tag of Docker image `TAG` in `Makefile` like `TAG := test-ci` +# run tests with Docker container pulled from Docker Hub +make test +``` + ## References Official documentation of TeX Live: From abb69b82b4a498e81aedb2dabe3ffc9c8b0cdf65 Mon Sep 17 00:00:00 2001 From: nukopy Date: Sun, 29 Oct 2023 03:53:49 +0900 Subject: [PATCH 17/19] chore: add an issue template --- .github/ISSUE_TEMPLATE/release.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/release.md diff --git a/.github/ISSUE_TEMPLATE/release.md b/.github/ISSUE_TEMPLATE/release.md new file mode 100644 index 0000000..3ea15f0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/release.md @@ -0,0 +1,14 @@ +## What + +- [ ] Task 1 +- [ ] Task 2 +- [ ] ... + +## Release checklist + +- [ ] Update the environment variable `TEXLIVE_VERSION` in `Dockerfile` is updated to the new version +- [ ] Update the variable `TAG` in `Makefile` is updated to the new version +- [ ] Build Docker image with tag of new version +- [ ] Run tests for the new version with Docker container built on local +- [ ] Push Docker image to Docker Hub +- [ ] Run tests for the new version with Docker container pulled from Docker Hub From ac6deeeacafe900ef18e55b04c3b35f3f038ec99 Mon Sep 17 00:00:00 2001 From: nukopy Date: Sun, 29 Oct 2023 04:46:48 +0900 Subject: [PATCH 18/19] docs: modify badges --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 190c973..6ac649e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ubuntu-texlive-ja -![Docker Automated Build](https://img.shields.io/docker/automated/nukopy/ubuntu-texlive-ja) ![Docker Image Size](https://img.shields.io/docker/image-size/nukopy/ubuntu-texlive-ja) ![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/nukopy/ubuntu-texlive-ja/texlive2022) +![Docker Automated Build](https://img.shields.io/docker/automated/nukopy/ubuntu-texlive-ja) ![Docker Image Size](https://img.shields.io/docker/image-size/nukopy/ubuntu-texlive-ja) ![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/nukopy/ubuntu-texlive-ja) ![Docker Pulls](https://img.shields.io/docker/pulls/nukopy/ubuntu-texlive-ja) Docker image for writing environment for Japanese documents with LaTeX / TeX Live From 60a168f8878814e973c7186c0f5ad8fa1c014163 Mon Sep 17 00:00:00 2001 From: nukopy Date: Sun, 29 Oct 2023 04:59:29 +0900 Subject: [PATCH 19/19] chore: issue template to pr template --- .github/{ISSUE_TEMPLATE => PULL_REQUEST_TEMPLATE}/release.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{ISSUE_TEMPLATE => PULL_REQUEST_TEMPLATE}/release.md (100%) diff --git a/.github/ISSUE_TEMPLATE/release.md b/.github/PULL_REQUEST_TEMPLATE/release.md similarity index 100% rename from .github/ISSUE_TEMPLATE/release.md rename to .github/PULL_REQUEST_TEMPLATE/release.md