This commit is contained in:
27
.gitea/workflows/deploy-ui.yml
Normal file
27
.gitea/workflows/deploy-ui.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Deploy Frontend
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build and Deploy Docker
|
||||
run: |
|
||||
docker build \
|
||||
--build-arg VITE_API_URL="http://api-digicraft.bilgich.com" \
|
||||
-t ui-digicraft .
|
||||
docker stop ui-digicraft-container || true
|
||||
docker rm ui-digicraft-container || true
|
||||
docker run -d \
|
||||
--name ui-digicraft-container \
|
||||
-p 1505:80 \
|
||||
--restart always \
|
||||
--network gitea-server_gitea \
|
||||
ui-digicraft
|
||||
Reference in New Issue
Block a user