Pass GITHUB_TOKEN through to Docker build

Also, back to drafts.
This commit is contained in:
Asher 2019-09-17 13:42:14 -05:00
parent 7b5d6d186b
commit d0a08f6dd7
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ jobs:
dist: trusty
env: DOCKER_BUILD="true"
if: branch == master AND tag IS blank
script: docker build --build-arg codeServerVersion="$VERSION" --build-arg vscodeVersion="$VSCODE_VERSION" -t codercom/code-server:"$VERSION" -t codercom/code-server:v2 .
script: docker build -e GITHUB_TOKEN="$GITHUB_TOKEN" --build-arg codeServerVersion="$VERSION" --build-arg vscodeVersion="$VSCODE_VERSION" -t codercom/code-server:"$VERSION" -t codercom/code-server:v2 .
git:
depth: 3
@ -50,7 +50,7 @@ before_deploy:
deploy:
- provider: releases
file_glob: true
prerelease: true
draft: true
tag_name: "$TAG"
target_commitish: "$TRAVIS_COMMIT"
name: "$TAG"