From e4c3f19f1fa0331591f6230fce3710cb5c0c884d Mon Sep 17 00:00:00 2001 From: tfaour Date: Sat, 29 Mar 2025 20:56:39 -0400 Subject: [PATCH] Update .gitea/workflows/build.yaml --- .gitea/workflows/build.yaml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 3731c93..38ff6c1 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -2,17 +2,21 @@ name: Build and test run-name: ${{ gitea.actor }} is building and testing nginx reverse proxy configuration on: [push] +name: Copy Files + +on: + push: + branches: + - main + jobs: - Explore-Gitea-Actions: - runs-on: ubuntu-latest + copy: + runs-on: [self-hosted] + steps: - - name: Check out repository code - uses: actions/checkout@v4 - - name: Build Docker container - run: docker build -t nginx-reverse-proxy . - - name: List files in the repository + - name: Clone Repository + uses: actions/checkout@v3 + + - name: Copy Files run: | - ls ${{ gitea.workspace }} - - name: Start the container - run: docker run -d --name container-name alpine watch "ls /etc/nginx/sites-available" - - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file + cp -r ./html/* /www-stg/html