-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: use PHP for release-docker script
- Loading branch information
1 parent
b86d6c9
commit 9e551a3
Showing
3 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
$dockerEmail = getenv('DOCKER_EMAIL'); | ||
$dockerUsername = getenv('DOCKER_USERNAME'); | ||
$dockerPassword = getenv('DOCKER_PASSWORD'); | ||
$version = json_decode(file_get_contents(__DIR__ . '/package.json'))->version; | ||
|
||
system("docker login -e=$dockerEmail -u=$dockerEmail -p=$dockerPassword"); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
system("docker build -t felixfbecker/php-language-server:$version ."); | ||
system("docker push felixfbecker/php-language-server:$version"); |
This file was deleted.
Oops, something went wrong.
Typo: email -> username