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
|
run-name: ${{ gitea.actor }} is building and testing nginx reverse proxy configuration
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
|
name: Copy Files
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
copy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: [self-hosted]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Clone Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
- name: Build Docker container
|
|
||||||
run: docker build -t nginx-reverse-proxy .
|
- name: Copy Files
|
||||||
- name: List files in the repository
|
|
||||||
run: |
|
run: |
|
||||||
ls ${{ gitea.workspace }}
|
cp -r ./html/* /www-stg/html
|
||||||
- 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 }}."
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user