Archived
1
0

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

View File

@ -36,7 +36,7 @@ jobs:
dist: trusty dist: trusty
env: DOCKER_BUILD="true" env: DOCKER_BUILD="true"
if: branch == master AND tag IS blank 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: git:
depth: 3 depth: 3
@ -50,7 +50,7 @@ before_deploy:
deploy: deploy:
- provider: releases - provider: releases
file_glob: true file_glob: true
prerelease: true draft: true
tag_name: "$TAG" tag_name: "$TAG"
target_commitish: "$TRAVIS_COMMIT" target_commitish: "$TRAVIS_COMMIT"
name: "$TAG" name: "$TAG"