mirror of
https://github.com/gotson/komga.git
synced 2026-04-16 12:01:09 +02:00
add Travis deployments for latest (docker:latest) and semVer tags (github release & docker:semVer)
This commit is contained in:
parent
b09734a5a8
commit
bf509b2b19
2 changed files with 27 additions and 5 deletions
30
.travis.yml
30
.travis.yml
|
|
@ -13,7 +13,29 @@ jdk: openjdk8
|
|||
before_deploy: echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||
|
||||
deploy:
|
||||
provider: script
|
||||
script: ./gradlew dockerPushBeta
|
||||
on:
|
||||
branch: master
|
||||
- provider: script
|
||||
script: ./gradlew dockerPushBeta
|
||||
skip_cleanup: true
|
||||
on:
|
||||
branch: master
|
||||
|
||||
- provider: script
|
||||
script: ./gradlew dockerPushLatest
|
||||
skip_cleanup: true
|
||||
on:
|
||||
tags: true
|
||||
condition: $TRAVIS_TAG = latest
|
||||
|
||||
- provider: script
|
||||
script: ./gradlew dockerPushSemVer
|
||||
skip_cleanup: true
|
||||
on:
|
||||
tags: true
|
||||
condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+
|
||||
|
||||
- provider: script
|
||||
script: ./gradlew githubRelease
|
||||
skip_cleanup: true
|
||||
on:
|
||||
tags: true
|
||||
condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+
|
||||
|
|
@ -118,7 +118,7 @@ configure<DockerExtension> {
|
|||
}
|
||||
|
||||
githubRelease {
|
||||
token(findProperty("github.token")?.toString())
|
||||
token(findProperty("github.token")?.toString() ?: System.getenv("GITHUB_TOKEN"))
|
||||
owner("gotson")
|
||||
repo("komga")
|
||||
releaseAssets(tasks.getByName("bootJar").outputs.files.singleFile)
|
||||
|
|
|
|||
Loading…
Reference in a new issue