deploy workflow
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
REACT_APP_API_URL="localhost:80"
|
|
||||||
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
@@ -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,7 +21,7 @@ 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
|
||||||
@@ -31,3 +29,17 @@ jobs:
|
|||||||
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
|
||||||
Reference in New Issue
Block a user