This commit is contained in:
parent
28cdf569a7
commit
4ec39882a8
@ -50,9 +50,6 @@ jobs:
|
|||||||
|
|
||||||
- name: setup node 18
|
- name: setup node 18
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
# with:
|
|
||||||
# node-version: 18
|
|
||||||
# cache: yarn
|
|
||||||
|
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
env:
|
env:
|
||||||
@ -86,6 +83,24 @@ jobs:
|
|||||||
echo ______ frontend/spa.html ______
|
echo ______ frontend/spa.html ______
|
||||||
cat frontend/spa.html
|
cat frontend/spa.html
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
env:
|
||||||
|
FORCE_COLOR: "true"
|
||||||
|
run: |
|
||||||
|
yarn build
|
||||||
|
|
||||||
|
#- name: build ssr
|
||||||
|
# env:
|
||||||
|
# FORCE_COLOR: "true"
|
||||||
|
# run: |
|
||||||
|
# yarn build:server
|
||||||
|
|
||||||
|
- name: build legacy
|
||||||
|
env:
|
||||||
|
FORCE_COLOR: "true"
|
||||||
|
run: |
|
||||||
|
yarn build:legacy
|
||||||
|
|
||||||
- name: Wait for Live Server
|
- name: Wait for Live Server
|
||||||
run: |
|
run: |
|
||||||
attempts=0
|
attempts=0
|
||||||
@ -94,11 +109,6 @@ jobs:
|
|||||||
if [ $attempts -eq $max_attempts ]; then
|
if [ $attempts -eq $max_attempts ]; then
|
||||||
echo "Live server not ready after $max_attempts attempts"
|
echo "Live server not ready after $max_attempts attempts"
|
||||||
echo "${{ toJson(job) }}"
|
echo "${{ toJson(job) }}"
|
||||||
echo "${{ job.services.live-server.id }}"
|
|
||||||
echo "${{ job.services.tibi-server.id }}"
|
|
||||||
echo "${{ job.services.mongo.id }}"
|
|
||||||
curl -v http://127.0.0.1:8080
|
|
||||||
curl -v http://127.0.0.1:8081
|
|
||||||
curl -v http://live-server:8081
|
curl -v http://live-server:8081
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -119,23 +129,6 @@ jobs:
|
|||||||
docker logs "${{ job.services.live-server.id }}"
|
docker logs "${{ job.services.live-server.id }}"
|
||||||
curl -v http://live-server:8081
|
curl -v http://live-server:8081
|
||||||
|
|
||||||
- name: stop Live Server
|
|
||||||
run: |
|
|
||||||
docker stop live-server-container
|
|
||||||
docker rm live-server-container
|
|
||||||
#- name: staging api testtest
|
|
||||||
# if: github.ref == 'refs/heads/dev'
|
|
||||||
# run: |
|
|
||||||
# targetDir=/data/${GITHUB_REPOSITORY}/${GITHUB_REF_NAME}
|
|
||||||
# mkdir -p targetDir
|
|
||||||
# rsync -av api $targetDir/
|
|
||||||
# mkdir -p $targetDir/frontend/dist
|
|
||||||
# rsync -av frontend/dist/ $targetDir/frontend/dist/
|
|
||||||
#- name: staging frontend
|
|
||||||
# if: github.ref == 'refs/heads/dev'
|
|
||||||
# run: |
|
|
||||||
# docker compose -p ${GITHUB_REF_NAME}-${GITHUB_REPOSITORY_NAME}-${GITHUB_REPOSITORY_OWNER} up -d --build --remove-orphans
|
|
||||||
|
|
||||||
- name: Install Chrome
|
- name: Install Chrome
|
||||||
run: |
|
run: |
|
||||||
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
|
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
|
||||||
@ -161,24 +154,6 @@ jobs:
|
|||||||
-v ${{ github.workspace }}/tmp:/lighthouse-reports \
|
-v ${{ github.workspace }}/tmp:/lighthouse-reports \
|
||||||
drillster/drone-email /tmp/lighthouse-report.json
|
drillster/drone-email /tmp/lighthouse-report.json
|
||||||
|
|
||||||
- name: build
|
|
||||||
env:
|
|
||||||
FORCE_COLOR: "true"
|
|
||||||
run: |
|
|
||||||
yarn build
|
|
||||||
|
|
||||||
#- name: build ssr
|
|
||||||
# env:
|
|
||||||
# FORCE_COLOR: "true"
|
|
||||||
# run: |
|
|
||||||
# yarn build:server
|
|
||||||
|
|
||||||
- name: build legacy
|
|
||||||
env:
|
|
||||||
FORCE_COLOR: "true"
|
|
||||||
run: |
|
|
||||||
yarn build:legacy
|
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user