Move CI on develop

This commit is contained in:
Chocobozzz 2021-12-03 10:24:33 +01:00
parent 63a3d336f6
commit bdb4cc80c3
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 5 additions and 11 deletions

View File

@ -14,9 +14,6 @@ name: "CodeQL"
on: on:
push: push:
branches: [ develop, next ] branches: [ develop, next ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ next ]
schedule: schedule:
- cron: '36 9 * * 5' - cron: '36 9 * * 5'

View File

@ -24,9 +24,9 @@ jobs:
# FIXME: https://github.com/actions/checkout/issues/290 # FIXME: https://github.com/actions/checkout/issues/290
git fetch --force --tags git fetch --force --tags
one="{ \"file\": \"./support/docker/production/Dockerfile.bullseye\", \"ref\": \"develop\", \"tags\": \"chocobozzz/peertube-test:develop-bullseye\" }" one="{ \"file\": \"./support/docker/production/Dockerfile.bullseye\", \"ref\": \"develop\", \"tags\": \"chocobozzz/peertube:develop-bullseye\" }"
two="{ \"file\": \"./support/docker/production/Dockerfile.buster\", \"ref\": \"master\", \"tags\": \"chocobozzz/peertube-test:production-buster,chocobozzz/peertube-test:$(git describe --abbrev=0)-buster\" }" two="{ \"file\": \"./support/docker/production/Dockerfile.buster\", \"ref\": \"master\", \"tags\": \"chocobozzz/peertube:production-buster,chocobozzz/peertube:$(git describe --abbrev=0)-buster\" }"
three="{ \"file\": \"./support/docker/production/Dockerfile.nginx\", \"ref\": \"master\", \"tags\": \"chocobozzz/peertube-webserver-test:latest\" }" three="{ \"file\": \"./support/docker/production/Dockerfile.nginx\", \"ref\": \"master\", \"tags\": \"chocobozzz/peertube-webserver:latest\" }"
matrix="[$one,$two,$three]" matrix="[$one,$two,$three]"
echo ::set-output name=matrix::{\"include\":$(echo $matrix)} echo ::set-output name=matrix::{\"include\":$(echo $matrix)}

View File

@ -1,9 +1,6 @@
name: Nightly name: Nightly
on: on:
push:
branches:
- 'next'
schedule: schedule:
- cron: '0 3 * * *' - cron: '0 3 * * *'
@ -17,7 +14,7 @@ jobs:
name: Checkout develop name: Checkout develop
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
ref: next ref: develop
- uses: './.github/actions/reusable-prepare-peertube-build' - uses: './.github/actions/reusable-prepare-peertube-build'
with: with:
@ -29,7 +26,7 @@ jobs:
- uses: './.github/actions/reusable-deploy' - uses: './.github/actions/reusable-deploy'
with: with:
source: ./peertube-nightly-* source: ./peertube-nightly-*
destination: nightly-test destination: nightly
knownHosts: ${{ secrets.STATS_DEPLOYEMENT_KNOWN_HOSTS }} knownHosts: ${{ secrets.STATS_DEPLOYEMENT_KNOWN_HOSTS }}
deployKey: ${{ secrets.STATS_DEPLOYEMENT_KEY }} deployKey: ${{ secrets.STATS_DEPLOYEMENT_KEY }}
deployUser: ${{ secrets.STATS_DEPLOYEMENT_USER }} deployUser: ${{ secrets.STATS_DEPLOYEMENT_USER }}