Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
skyleaworlder committed Jul 5, 2024
1 parent 62b0b45 commit 1f76854
Showing 4 changed files with 13 additions and 18 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -3,9 +3,9 @@ on:
push:
branches:
- master
- ci
paths:
- "Dockerfile"
workflow_dispatch:

name: release image

@@ -15,13 +15,13 @@ jobs:
# build-push-action use git context,
# do not need to use actions/checkout
steps:
-
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
-
name: Login to DockerHub
uses: docker/login-action@v2
with:
9 changes: 4 additions & 5 deletions .github/workflows/release_ghcr.yaml
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@ on:
push:
branches:
- master
- 'ci/*'
paths:
- "Dockerfile"
workflow_dispatch:
@@ -22,23 +21,23 @@ jobs:
packages: write
contents: read
steps:
-
-
name: checkout
uses: actions/checkout@v3
-
-
name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
-
name: extract metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ env.ORG_NAME }}/${{ env.IMAGE_TAG }}
-
-
name: push image to ghcr
uses: docker/build-push-action@v3
with:
8 changes: 2 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
on:
push:
branches:
- master
- ci
pull_request:
branches:
- master
@@ -13,11 +10,10 @@ jobs:
docker-compose:
runs-on: ubuntu-latest
steps:
-
-
name: checkout
uses: actions/checkout@v2
-
-
name: run container
run: |
docker compose up -d
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:latest

# Docker image: tut-env:v1
# Docker image: tut-env:v1
LABEL organization="TJ-CSCCG"
LABEL maintainer="skyleaworlder"
LABEL version="v1"
@@ -25,10 +25,10 @@ RUN apt-get install -y git \
wget \
libfontconfig \
python3 \
python3-pip && \
pipx && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
RUN pip install Pygments -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN pipx install Pygments -i https://pypi.tuna.tsinghua.edu.cn/simple

# download & install TeXLive
COPY texlive.profile ${TL_PROFILE_PATH}

0 comments on commit 1f76854

Please sign in to comment.