From 05a0807e3d8223d3de766bf9b86a30ed6ec71678 Mon Sep 17 00:00:00 2001 From: AaronHux Date: Sat, 25 May 2024 00:09:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/action.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/action.yaml b/.gitea/workflows/action.yaml index 3fd6ca9..0fd9292 100644 --- a/.gitea/workflows/action.yaml +++ b/.gitea/workflows/action.yaml @@ -7,10 +7,13 @@ jobs: runs-on: server container: image: ghcr.nju.edu.cn/catthehacker/ubuntu:act-latest - volumes: - - /run/docker.sock:/run/docker.sock - steps: - - run: docker build --pull --rm -f "Dockerfile" -t website-v1:latest "." + # volumes: + # - /run/docker.sock:/run/docker.sock + env: + DOCKER_ORG: gitea + DOCKER_LATEST: latest + steps: + - run: docker build -t website-v1:latest "." - run: docker rm -f website-v1 || true - run: docker run -d -p 19555:80 --restart=unless-stopped --name website-v1 website-v1 - run: docker rmi $(docker images -f "dangling=true" -q) || true