According with Nova 2.X manual
It's not advised to store your auth.json file inside your project's version control repository. However, there may be times you wish to download Nova inside a CI environment like CodeShip. For instance, you may wish to run tests for any custom tools you create. To authenticate Nova in these situations, you can use Composer to set the configuration option inside your CI system's pipeline, injecting environment variables containing your Nova username and password:
composer config http-basic.nova.laravel.com ${NOVA_USERNAME} ${NOVA_PASSWORD}
- Create two variables in my Gitlab > Project > Settings > CI/CD with Key NOVA_USERNAME & NOVA_PASSWORD and and their respective value
- Edit my gitlab-ci.yaml
- composer config http-basic.nova.laravel.com ${NOVA_USERNAME} ${NOVA_PASSWORD}
- composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts
also tried
- composer config http-basic.nova.laravel.com "$NOVA_USERNAME" "$NOVA_PASSWORD"
- composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts
All times get error:
- Installing laravel/nova (v2.1.1): Downloading Failed to download laravel/nova from dist: The 'https://nova.laravel.com/dist/laravel/nova/laravel-nova-1a3788eeba04c3627b772ab0a35bcb26b1f928d9-zip-74981f.zip' URL could not be accessed: HTTP/1.1 403 Forbidden
Now trying to download from source
- Installing laravel/nova (v2.1.1): Cloning 1a3788eeba
[RuntimeException]
Failed to execute git clone --no-checkout '[email protected]:laravel/nova.git' '/builds/root/albarid/vendor/laravel/nova' && cd '/builds/root/albarid/vendor/laravel/nova' && git remote add composer '[email protected]:laravel/nova.git' && git fetch composer
Also try edit my .gitlab-ci.yml
- composer config http-basic.nova.laravel.com "$NOVA_USERNAME" "$NOVA_PASSWORD"
- echo "{\"http-basic\":{\"nova.laravel.com\":{\"username\":\"${NOVA_USERNAME}\",\"password\":\"${NOVA_PASSWORD}\"}}}" > ~/.composer/auth.json
- cat ~/.composer/auth.json
But get same error
$ php -v
PHP 7.3.8 (cli) (built: Aug 20 2019 22:57:27) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.8, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.8, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.7.0rc1, Copyright (c) 2002-2019, by Derick Rethans
$ composer config http-basic.nova.laravel.com "$NOVA_USERNAME" "$NOVA_PASSWORD"
$ echo "{\"http-basic\":{\"nova.laravel.com\":{\"username\":\"${NOVA_USERNAME}\",\"password\":\"${NOVA_PASSWORD}\"}}}" > ~/.composer/auth.json
$ cat ~/.composer/auth.json
{"http-basic":{"nova.laravel.com":{"username":"[email protected]","password":"MY_PASSWORD}}}
$ composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts
...
- Installing cakephp/chronos (1.2.8): Loading from cache
- Installing laravel/nova (v2.1.1): Downloading Failed to download laravel/nova from dist: The 'https://nova.laravel.com/dist/laravel/nova/laravel-nova-1a3788eeba04c3627b772ab0a35bcb26b1f928d9-zip-74981f.zip' URL could not be accessed: HTTP/1.1 403 Forbidden
Now trying to download from source
- Installing laravel/nova (v2.1.1): Cloning 1a3788eeba
[RuntimeException]
Failed to execute git clone --no-checkout '[email protected]:laravel/nova.git' '/builds/root/albarid/vendor/laravel/nova' && cd '/builds/root/albarid/vendor/laravel/nova' && git remote add composer '[email protected]:laravel/nova.git' && git fetch composer
I don't understand what I'm doing wrong and I don't see much about it.