Compare commits

...

2 Commits

Author SHA1 Message Date
Florian Brinker
569622b11f prepare seperate development pipeline
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2021-05-10 18:37:09 +02:00
Florian Brinker
5d14177f58 Change "target" label to "docker" 2021-05-10 18:23:41 +02:00
2 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
name: default name: production
steps: steps:
- name: Build Dockerfile - name: Build Dockerfile
@ -14,6 +14,7 @@ steps:
image: plugins/docker image: plugins/docker
settings: settings:
repo: fbrinker/tileboard repo: fbrinker/tileboard
dockerfile: Dockerfile
username: username:
from_secret: docker_username from_secret: docker_username
password: password:

View File

@ -26,14 +26,14 @@ docker_tag_exists() {
} }
source_repo="${1-resoai/TileBoard}" source_repo="${1-resoai/TileBoard}"
target_repo="${2-fbrinker/tileboard}" docker_repo="${2-fbrinker/tileboard}"
echo "Source repository: $source_repo." echo "Source repository: $source_repo."
echo "Target repository: $target_repo." echo "Docker repository: $docker_repo."
LATEST_RELEASE=`getVersionFromLatestRelease $source_repo` LATEST_RELEASE=`getVersionFromLatestRelease $source_repo`
echo "Latest release is: $LATEST_RELEASE." 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." echo "Nothing to do. Latest release tag already exists."
exit 78 # drone.io exit code to stop but success the pipeline exit 78 # drone.io exit code to stop but success the pipeline
fi fi