deploy workflow

This commit is contained in:
2023-03-24 18:07:04 +01:00
parent 8ce76902a5
commit b10c364212
3 changed files with 16 additions and 6 deletions

View File

@@ -4,11 +4,9 @@ on:
push:
branches:
- mauster
- developmaunt
pull_request:
branches:
- mauster
- developmaunt
workflow_dispatch:
concurrency:
@@ -23,11 +21,25 @@ jobs:
uses: actions/checkout@main
with:
fetch-depth: 0
- name: Use Node.js
- name: Setup Node.js
uses: actions/setup-node@main
with:
node-version: 16
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
run: npm run build
deploy:
runs-on: self-hosted
needs: build
steps:
- name: Checkout
uses: actions/checkout@main
with:
fetch-depth: 0
- name: Create .env File
run: |
touch .env
echo "REACT_APP_API_URL=86.81.166.51:80" > .env
- name: Docker Compose
run: docker-compose up -d --build