parent
de5f43dbd7
commit
6fb6a3347f
@ -14,21 +14,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: remove lfs links
|
|
||||||
run: |
|
|
||||||
ls -la .yarn/cache
|
|
||||||
rm -r .yarn/cache
|
|
||||||
|
|
||||||
- name: setup node 18
|
- name: setup node 18
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
# with:
|
||||||
node-version: 18
|
# node-version: 18
|
||||||
cache: yarn
|
# cache: yarn
|
||||||
|
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
env:
|
env:
|
||||||
FORCE_COLOR: "true"
|
FORCE_COLOR: "true"
|
||||||
run: |
|
run: |
|
||||||
|
npm install -g yarn
|
||||||
yarn install
|
yarn install
|
||||||
|
|
||||||
- name: modify config
|
- name: modify config
|
||||||
@ -51,8 +47,8 @@ jobs:
|
|||||||
sed -i s/__TIMESTAMP__/$stamp/g frontend/spa.html
|
sed -i s/__TIMESTAMP__/$stamp/g frontend/spa.html
|
||||||
# sed -i s/__TIMESTAMP__/$stamp/g frontend/serviceworker.js
|
# sed -i s/__TIMESTAMP__/$stamp/g frontend/serviceworker.js
|
||||||
# cat frontend/serviceworker.js
|
# cat frontend/serviceworker.js
|
||||||
rm api/templates/spa.html
|
# rm api/templates/spa.html
|
||||||
cp frontend/spa.html api/templates/spa.html
|
# cp frontend/spa.html api/templates/spa.html
|
||||||
echo ______ frontend/spa.html ______
|
echo ______ frontend/spa.html ______
|
||||||
cat frontend/spa.html
|
cat frontend/spa.html
|
||||||
|
|
||||||
@ -74,7 +70,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
yarn build:legacy
|
yarn build:legacy
|
||||||
|
|
||||||
#- name: staging api
|
#- name: staging api test
|
||||||
# if: github.ref == 'refs/heads/dev'
|
# if: github.ref == 'refs/heads/dev'
|
||||||
# run: |
|
# run: |
|
||||||
# targetDir=/data/${GITHUB_REPOSITORY}/${GITHUB_REF_NAME}
|
# targetDir=/data/${GITHUB_REPOSITORY}/${GITHUB_REF_NAME}
|
||||||
@ -83,7 +79,7 @@ jobs:
|
|||||||
# mkdir -p $targetDir/frontend/dist
|
# mkdir -p $targetDir/frontend/dist
|
||||||
# rsync -av frontend/dist/ $targetDir/frontend/dist/
|
# rsync -av frontend/dist/ $targetDir/frontend/dist/
|
||||||
|
|
||||||
#- name: staging frontend
|
#- name: staging frontend te
|
||||||
# if: github.ref == 'refs/heads/dev'
|
# if: github.ref == 'refs/heads/dev'
|
||||||
# run: |
|
# run: |
|
||||||
# docker compose -p ${GITHUB_REF_NAME}-${GITHUB_REPOSITORY_NAME}-${GITHUB_REPOSITORY_OWNER} up -d --build --remove-orphans
|
# docker compose -p ${GITHUB_REF_NAME}-${GITHUB_REPOSITORY_NAME}-${GITHUB_REPOSITORY_OWNER} up -d --build --remove-orphans
|
||||||
@ -91,7 +87,7 @@ jobs:
|
|||||||
- name: deploy
|
- name: deploy
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
env:
|
env:
|
||||||
RSYNC_USER: "allkids_rsync_master"
|
RSYNC_USER: "Grit Grenzdörfer_rsync_master"
|
||||||
RSYNC_PASS: ${{ secrets.rsync_master }}
|
RSYNC_PASS: ${{ secrets.rsync_master }}
|
||||||
run: |
|
run: |
|
||||||
scripts/deploy.sh ftp1.webmakers.de $RSYNC_USER $RSYNC_PASS
|
scripts/deploy.sh ftp1.webmakers.de $RSYNC_USER $RSYNC_PASS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user