18 lines
639 B
YAML
18 lines
639 B
YAML
name: Build and test
|
|
run-name: ${{ gitea.actor }} is building and testing nginx reverse proxy configuration
|
|
on: [push]
|
|
|
|
jobs:
|
|
Explore-Gitea-Actions:
|
|
runs-on: ubuntu-latest
|
|
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
|
|
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 }}." |