مقایسه کامیتها
2 کامیتها
9aaa9acca9
...
569622b11f
مولف | SHA1 | تاریخ | |
---|---|---|---|
![]() |
569622b11f | ||
![]() |
5d14177f58 |
@ -1,7 +1,7 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
name: production
|
||||
|
||||
steps:
|
||||
- name: Build Dockerfile
|
||||
@ -14,6 +14,7 @@ steps:
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: fbrinker/tileboard
|
||||
dockerfile: Dockerfile
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
|
6
build.sh
6
build.sh
@ -26,14 +26,14 @@ docker_tag_exists() {
|
||||
}
|
||||
|
||||
source_repo="${1-resoai/TileBoard}"
|
||||
target_repo="${2-fbrinker/tileboard}"
|
||||
docker_repo="${2-fbrinker/tileboard}"
|
||||
echo "Source repository: $source_repo."
|
||||
echo "Target repository: $target_repo."
|
||||
echo "Docker repository: $docker_repo."
|
||||
|
||||
LATEST_RELEASE=`getVersionFromLatestRelease $source_repo`
|
||||
echo "Latest release is: $LATEST_RELEASE."
|
||||
|
||||
if docker_tag_exists $target_repo $LATEST_RELEASE; then
|
||||
if docker_tag_exists $docker_repo $LATEST_RELEASE; then
|
||||
echo "Nothing to do. Latest release tag already exists."
|
||||
exit 78 # drone.io exit code to stop but success the pipeline
|
||||
fi
|
||||
|
مرجع در شماره جدید
Block a user