-
Notifications
You must be signed in to change notification settings - Fork 13
45 lines (43 loc) · 1.26 KB
/
build-upstream-mirror.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Build, deploy & check Mirror
on:
workflow_dispatch:
inputs:
repo:
description: 'The composer repository url'
required: true
default: 'https://preview-mirror.mage-os.org/'
type: choice
options:
- https://preview-mirror.mage-os.org/
- https://mirror.mage-os.org/
remote_dir:
description: 'The deploy target directory on the repo host'
required: true
default: '/var/www/preview-mirror.mage-os.org/html/'
type: choice
options:
- /var/www/preview-mirror.mage-os.org/html/
- /var/www/mirror.mage-os.org/html/
push:
branches:
- main
jobs:
deploy:
uses: ./.github/workflows/deploy.yml
name: "generate & deploy"
if: contains('["vinai", "rhoerr", "fballiano", "mage-os-ci"]', github.actor)
with:
repo: ${{ inputs.repo }}
remote_dir: ${{ inputs.remote_dir }}
entrypoint: src/make/mirror.js
delete: true
secrets:
SERVER_SSH_KEY: ${{ secrets.SERVER_SSH_KEY }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
integrity-check:
needs: [deploy]
uses: ./.github/workflows/integrity-check.yml
with:
repo: ${{ inputs.repo }}
secrets:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}