From 5cd0ad0e342dc97edebbe3e9be91ada6c833881f Mon Sep 17 00:00:00 2001 From: zhangzhipeng <472876707@qq.com> Date: Fri, 9 May 2025 11:41:20 +0800 Subject: [PATCH] init --- .gitea/workflows/web_build.yaml | 41 ++++++--------------------------- 1 file changed, 7 insertions(+), 34 deletions(-) diff --git a/.gitea/workflows/web_build.yaml b/.gitea/workflows/web_build.yaml index 54cdf2a..3ace525 100644 --- a/.gitea/workflows/web_build.yaml +++ b/.gitea/workflows/web_build.yaml @@ -1,40 +1,13 @@ -name: MBTI Static Project Nginx Deploy -run-name: ${{ gitea.actor }} is building - +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 on: push: branches: - master - jobs: - build: - runs-on: ubuntu-22.04 + Explore-Gitea-Actions: + runs-on: ubuntu-latest steps: - - name: Checkout MBTI code - uses: actions/checkout@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Build Nginx image for MBTI - uses: docker/build-push-action@v4 - with: - context: . - file: ./Dockerfile - push: false - tags: mbti-nginx:latest - - - name: Stop and remove existing container - run: | - if docker ps -a --format '{{.Names}}' | grep -q 'mbti-nginx'; then - docker stop mbti-nginx - docker rm mbti-nginx - fi - - - name: Run MBTI Nginx container - run: | - docker run -d \ - --name mbti-nginx \ - -p 8989:80 \ - -v /path/to/mbti/static:/usr/share/nginx/html \ - mbti-nginx:latest \ No newline at end of file + - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" + - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." \ No newline at end of file