mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
Add files
This commit is contained in:
commit
e87c814068
266 changed files with 63938 additions and 0 deletions
18
scripts/server-publish.ps1
Normal file
18
scripts/server-publish.ps1
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
$repositoryRootDirectory = Join-Path -Path Get-Location -ChildPath '..'
|
||||
try {
|
||||
$script:packageJson = Get-Content -Path (Join-Path -Path $repositoryRootDirectory -ChildPath 'package.json') | ConvertFrom-Json
|
||||
} catch {
|
||||
throw 'package.json does not exist'
|
||||
}
|
||||
|
||||
if (!$script:packageJson.version) {
|
||||
throw 'package.json does not contain a version'
|
||||
}
|
||||
|
||||
$version = $script:packageJson.version
|
||||
$appName = $script:packageJson.name
|
||||
$dockerRepo = 'jeffvictorli'
|
||||
|
||||
Write-Host "Pushing [${appname}:latest] & [${appName}:${version}]"
|
||||
|
||||
docker push "${dockerRepo}/${appName}" --all-tags
|
||||
Loading…
Add table
Add a link
Reference in a new issue