feat: create ci
This commit is contained in:
31
.gitea/workflows/workflow.yaml
Normal file
31
.gitea/workflows/workflow.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Deploy Static Website
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: Deploy to Web Server
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
with:
|
||||
driver: docker
|
||||
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
docker buildx build . -t git.mamahaha.work/sangge/hhl -f Dockerfile
|
||||
|
||||
- name: Start Docker
|
||||
run: |
|
||||
docker run -d -p 4010:80 git.mamahaha.work/sangge/hhl
|
Reference in New Issue
Block a user