Update .gitea/workflows/build.yaml
This commit is contained in:
parent
8aef3bb3ad
commit
e4c3f19f1f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user