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

1
.env
View File

@@ -1 +0,0 @@
REACT_APP_API_URL=

View File

@@ -1 +0,0 @@
REACT_APP_API_URL="localhost:80"

View File

@@ -4,11 +4,9 @@ on:
push: push:
branches: branches:
- mauster - mauster
- developmaunt
pull_request: pull_request:
branches: branches:
- mauster - mauster
- developmaunt
workflow_dispatch: workflow_dispatch:
concurrency: concurrency:
@@ -23,11 +21,25 @@ jobs:
uses: actions/checkout@main uses: actions/checkout@main
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Use Node.js - name: Setup Node.js
uses: actions/setup-node@main uses: actions/setup-node@main
with: with:
node-version: 16 node-version: 16
- name: Install dependencies - name: Install dependencies
run: npm install run: npm install
- name: Build - 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