Skip to content

Commit 0173a75

Browse files
committed
Removed env variables since they are not working
1 parent 0a7ea6e commit 0173a75

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed
Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,24 @@
11
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/'
72

83
on:
94
workflow_dispatch:
105
inputs:
116
repo:
127
description: 'The composer repository url'
138
required: true
14-
default: ${{ env.PREVIEW_REPO }}
9+
default: 'https://preview-mirror.mage-os.org/'
1510
type: choice
1611
options:
17-
- ${{ env.PREVIEW_REPO }}
18-
- ${{ env.PROD_REPO }}
12+
- 'https://preview-mirror.mage-os.org/'
13+
- 'https://mirror.mage-os.org/'
1914
remote_dir:
2015
description: 'The deploy target directory on the repo host'
2116
required: true
22-
default: ${{ env.PREVIEW_REMOTE_DIR }}
17+
default: '/var/www/preview-mirror.mage-os.org/html/'
2318
type: choice
2419
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/'
2722
push:
2823
branches:
2924
- main
@@ -34,8 +29,8 @@ jobs:
3429
name: "generate & deploy"
3530
if: contains('["vinai", "rhoerr", "fballiano", "mage-os-ci"]', github.actor)
3631
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/' }}
3934
entrypoint: src/make/mirror.js
4035
delete: true
4136
secrets:
@@ -46,6 +41,6 @@ jobs:
4641
needs: [deploy]
4742
uses: ./.github/workflows/integrity-check.yml
4843
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/' }}
5045
secrets:
5146
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}

0 commit comments

Comments
 (0)