Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
skyleaworlder committed Jul 5, 2024
1 parent 62b0b45 commit e630ab3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ on:
branches:
- master
- ci
- 'ci/*'
paths:
- "Dockerfile"
workflow_dispatch:

name: release image

Expand All @@ -15,13 +17,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:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/release_ghcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- master
- ci
- 'ci/*'
paths:
- "Dockerfile"
Expand All @@ -22,23 +23,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:
Expand Down
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
Expand All @@ -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"
Expand All @@ -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}
Expand Down

0 comments on commit e630ab3

Please sign in to comment.