diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 57c6e77..aa46c60 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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: diff --git a/.github/workflows/release_ghcr.yaml b/.github/workflows/release_ghcr.yaml index 2e52110..98e0508 100644 --- a/.github/workflows/release_ghcr.yaml +++ b/.github/workflows/release_ghcr.yaml @@ -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: diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4361076..e98558d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 - \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 69968c5..7ae91a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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}