|
1 | 1 | name: Build, deploy & check Mirror
|
2 |
| -env: |
3 |
| - PREVIEW_REPO: 'https://preview-mirror.mage-os.org/' |
4 |
| - PROD_REPO: 'https://mirror.mage-os.org/' |
5 |
| - PREVIEW_REMOTE_DIR: '/var/www/preview-mirror.mage-os.org/html/' |
6 |
| - PROD_REMOTE_DIR: '/var/www/mirror.mage-os.org/html/' |
7 | 2 |
|
8 | 3 | on:
|
9 | 4 | workflow_dispatch:
|
10 | 5 | inputs:
|
11 | 6 | repo:
|
12 | 7 | description: 'The composer repository url'
|
13 | 8 | required: true
|
14 |
| - default: ${{ env.PREVIEW_REPO }} |
| 9 | + default: 'https://preview-mirror.mage-os.org/' |
15 | 10 | type: choice
|
16 | 11 | options:
|
17 |
| - - ${{ env.PREVIEW_REPO }} |
18 |
| - - ${{ env.PROD_REPO }} |
| 12 | + - 'https://preview-mirror.mage-os.org/' |
| 13 | + - 'https://mirror.mage-os.org/' |
19 | 14 | remote_dir:
|
20 | 15 | description: 'The deploy target directory on the repo host'
|
21 | 16 | required: true
|
22 |
| - default: ${{ env.PREVIEW_REMOTE_DIR }} |
| 17 | + default: '/var/www/preview-mirror.mage-os.org/html/' |
23 | 18 | type: choice
|
24 | 19 | options:
|
25 |
| - - ${{ env.PREVIEW_REMOTE_DIR }} |
26 |
| - - ${{ env.PROD_REMOTE_DIR }} |
| 20 | + - '/var/www/preview-mirror.mage-os.org/html/' |
| 21 | + - '/var/www/mirror.mage-os.org/html/' |
27 | 22 | push:
|
28 | 23 | branches:
|
29 | 24 | - main
|
|
34 | 29 | name: "generate & deploy"
|
35 | 30 | if: contains('["vinai", "rhoerr", "fballiano", "mage-os-ci"]', github.actor)
|
36 | 31 | with:
|
37 |
| - repo: ${{ (github.event_name == 'workflow_dispatch' && inputs.repo) || env.PREVIEW_REPO }} |
38 |
| - remote_dir: ${{ (github.event_name == 'workflow_dispatch' && inputs.remote_dir) || env.PREVIEW_REMOTE_DIR }} |
| 32 | + repo: ${{ (github.event_name == 'workflow_dispatch' && inputs.repo) || 'https://preview-mirror.mage-os.org/' }} |
| 33 | + remote_dir: ${{ (github.event_name == 'workflow_dispatch' && inputs.remote_dir) || '/var/www/preview-mirror.mage-os.org/html/' }} |
39 | 34 | entrypoint: src/make/mirror.js
|
40 | 35 | delete: true
|
41 | 36 | secrets:
|
|
46 | 41 | needs: [deploy]
|
47 | 42 | uses: ./.github/workflows/integrity-check.yml
|
48 | 43 | with:
|
49 |
| - repo: ${{ (github.event_name == 'workflow_dispatch' && inputs.repo) || env.PREVIEW_REPO }} |
| 44 | + repo: ${{ (github.event_name == 'workflow_dispatch' && inputs.repo) || 'https://preview-mirror.mage-os.org/' }} |
50 | 45 | secrets:
|
51 | 46 | COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
|
0 commit comments