hhl_project/.gitea/workflows/workflow.yaml
sangge f654d4f55b
All checks were successful
Deploy Static Website / Deploy to Web Server (push) Successful in 1m35s
fix: listen all ip
2023-12-25 00:33:21 +08:00

31 lines
630 B
YAML

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 0.0.0.0:4010:80 git.mamahaha.work/sangge/hhl:latest