客户版本
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m53s

This commit is contained in:
Song367 2025-08-12 16:24:41 +08:00
parent 27234f1a5a
commit 384d6bbb67

View File

@ -3,7 +3,7 @@ run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: on:
push: push:
branches: branches:
- 'new_male' - 'kehu'
env: env:
BUILD: staging BUILD: staging
@ -30,15 +30,15 @@ jobs:
uses: https://gitea.yantootech.com/neil/build-push-action@v6 uses: https://gitea.yantootech.com/neil/build-push-action@v6
with: with:
push: false push: false
tags: emotion-digital-video:${{ gitea.run_id }} tags: emotion-digital-video-kehu:${{ gitea.run_id }}
- name: Run docker - name: Run docker
run: | run: |
pwd pwd
if [ "$(docker ps -q -f name=^emotion-digital-video$)" ]; then if [ "$(docker ps -q -f name=^emotion-digital-video-kehu$)" ]; then
docker stop emotion-digital-video docker stop emotion-digital-video-kehu
fi fi
docker run -d --rm --name emotion-digital-video \ docker run -d --rm --name emotion-digital-video-kehu \
-v /usr/share/fonts/opentype/noto:/usr/share/fonts \ -v /usr/share/fonts/opentype/noto:/usr/share/fonts \
-p 6900:3000 \ -p 6921:3000 \
emotion-digital-video:${{ gitea.run_id }} emotion-digital-video-kehu:${{ gitea.run_id }}
- run: echo "🍏 This job's status is ${{ job.status }}." - run: echo "🍏 This job's status is ${{ job.status }}."