Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 233e7a9c8e | |||
| 7123bc4529 | |||
| 3294b1adf9 | |||
| 355dabf439 | |||
| 8997a570fa | |||
| 3b53b8997d | |||
| ff9c9c6a84 |
@@ -1,6 +1,12 @@
|
|||||||
name: Build Mau & Deploy Mau
|
name: Build Mau & Deploy Mau
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'mauster'
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: mau
|
group: mau
|
||||||
@@ -36,18 +42,13 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
|
if: gitea.ref == 'refs/heads/mauster'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Create .env File
|
|
||||||
run: |
|
|
||||||
touch .env
|
|
||||||
echo "REACT_APP_API_URL=https://mau-mau.nl/api" > .env
|
|
||||||
echo "REACT_APP_WEBSOCKET_URL=wss://mau-mau.nl/api" >> .env
|
|
||||||
|
|
||||||
- name: Set up Docker BuildX
|
- name: Set up Docker BuildX
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
# Create a production build of the app
|
# Create a production build of the app
|
||||||
FROM node:16.9.1 as build
|
FROM node:16.9.1 as build
|
||||||
|
WORKDIR /var/www/mau-mau.nl
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
RUN echo "REACT_APP_API_URL=https://api.mau-mau.nl" >> .env
|
||||||
|
RUN echo "REACT_APP_WEBSOCKET_URL=wss://api.mau-mau.nl" >> .env
|
||||||
|
|
||||||
RUN npm install --silent
|
RUN npm install --silent
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
RUN npm install -g serve
|
RUN npm install -g serve
|
||||||
|
|||||||
Reference in New Issue
Block a user