mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Use now --target production instead of now alias
Fix for this error:
$ now alias --token=$NOW_TOKEN
> WARN! The `now alias` command (no arguments) was deprecated in favour of `now --target production`.
> Error! Couldn't find a deployment to alias. Please provide one as an argument.
The command "now alias --token=$NOW_TOKEN" exited with 1.
https://travis-ci.org/simonw/datasette/jobs/530597261
This commit is contained in:
parent
de005b9b7d
commit
e7b31ae8c1
1 changed files with 3 additions and 3 deletions
|
|
@ -29,9 +29,9 @@ jobs:
|
|||
- export ALIAS=`echo $TRAVIS_COMMIT | cut -c 1-7`
|
||||
- echo "{\"name\":\"datasette-latest-$ALIAS\",\"alias\":\"latest.datasette.io\"}" > now.json
|
||||
- datasette publish now fixtures.db -m fixtures.json --token=$NOW_TOKEN --branch=$TRAVIS_COMMIT --version-note=$TRAVIS_COMMIT --name=datasette-latest-$ALIAS
|
||||
- now alias --token=$NOW_TOKEN
|
||||
- now --target production --token=$NOW_TOKEN
|
||||
- echo "{\"name\":\"datasette-latest-$ALIAS\",\"alias\":\"$ALIAS.datasette.io\"}" > now.json
|
||||
- now alias --token=$NOW_TOKEN
|
||||
- now --target production --token=$NOW_TOKEN
|
||||
- stage: release tagged version
|
||||
if: tag IS present
|
||||
python: 3.6
|
||||
|
|
@ -40,7 +40,7 @@ jobs:
|
|||
- export ALIAS=`echo $TRAVIS_COMMIT | cut -c 1-7`
|
||||
- export TAG=`echo $TRAVIS_TAG | sed 's/\./-/g' | sed 's/.*/v&/'`
|
||||
- echo "{\"name\":\"datasette-latest-$ALIAS\",\"alias\":\"$TAG.datasette.io\"}" > now.json
|
||||
- now alias --token=$NOW_TOKEN
|
||||
- now --target production --token=$NOW_TOKEN
|
||||
# Build and release to Docker Hub
|
||||
- docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
- export REPO=datasetteproject/datasette
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue