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