.gitea/workflows/prod.yml aktualisiert
This commit is contained in:
parent
71de6c766d
commit
b93a743492
@ -1,9 +1,8 @@
|
||||
name: schuelerzeitung-prod
|
||||
name: Schülerzeitung Prod/Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
branches: [main]
|
||||
|
||||
defaults:
|
||||
run:
|
||||
@ -11,9 +10,9 @@ defaults:
|
||||
|
||||
jobs:
|
||||
prod-build:
|
||||
name: Produktivumgebung
|
||||
if: gitea.repository == 'gcg/schuelerzeitung'
|
||||
runs-on: act-runner-user
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- name: Pull
|
||||
run: |
|
||||
@ -27,13 +26,13 @@ jobs:
|
||||
run: |
|
||||
cd public
|
||||
rsync -azr --delete ./ /opt/data/webdata/schuelerzeitung/
|
||||
- name: Telegram notification
|
||||
- name: Notification (GCG.IT Administration)
|
||||
uses: actions/telegram-action@main
|
||||
if: always()
|
||||
with:
|
||||
chat_id: ${{ secrets.TG_CHAT_ID }}
|
||||
token: ${{ secrets.TG_TOKEN }}
|
||||
- name: Telegram notification
|
||||
- name: Notification (Schülerzeitung)
|
||||
uses: actions/telegram-action@main
|
||||
if: always()
|
||||
with:
|
||||
@ -41,19 +40,19 @@ jobs:
|
||||
token: ${{ secrets.TG_TOKEN }}
|
||||
|
||||
test-build:
|
||||
name: Testumgebung
|
||||
if: gitea.repository == 'gcg/schuelerzeitung'
|
||||
runs-on: act-runner-user
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- name: pull
|
||||
- name: Pull
|
||||
run: |
|
||||
git fetch --all
|
||||
git reset --hard origin/main
|
||||
- name: build
|
||||
- name: Build
|
||||
run: |
|
||||
rm -rf test
|
||||
hugo --minify --gc --baseURL "https://test.schuelerzeitung-gcg.de/" --buildDrafts --buildFuture -d test
|
||||
- name: deploy
|
||||
- name: Deploy
|
||||
run: |
|
||||
cd test
|
||||
rsync -azr --delete ./ /opt/data/webdata/schuelerzeitung-test/
|
Loading…
x
Reference in New Issue
Block a user