Update .gitea/workflows/build.yaml

This commit is contained in:
tfaour 2025-03-29 20:56:39 -04:00
parent 8aef3bb3ad
commit e4c3f19f1f

View File

@ -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 }}."
cp -r ./html/* /www-stg/html