Skip to content

Commit

Permalink
pipeline improvements (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
mazay authored Jul 19, 2020
1 parent 3874e59 commit 069b71a
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions .teamcity/settings.kts
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,16 @@ object DockerBuild : BuildType({
#!/usr/bin/env bash
if [ -z "${'$'}{RELEASE_VERSION}" ]; then
echo "Environment variable RELEASE_VERSION is not set, exiting"
exit 1
else
if [ "${'$'}{RELEASE_VERSION}" = "master" ]; then
RELEASE_VERSION="latest"
fi
fi
echo "Building docker images for ${'$'}{RELEASE_VERSION}"
make docker-multi-arch
""".trimIndent()
formatStderrAsError = true
Expand All @@ -193,7 +196,9 @@ object DockerBuild : BuildType({
}

dependencies {
snapshot(UnitTesting){}
snapshot(UnitTesting){
onDependencyFailure = FailureAction.FAIL_TO_START
}
}

features {
Expand Down Expand Up @@ -273,7 +278,9 @@ object Build : BuildType({
}

dependencies {
snapshot(UnitTesting){}
snapshot(UnitTesting){
onDependencyFailure = FailureAction.FAIL_TO_START
}
}
})

Expand Down Expand Up @@ -302,6 +309,17 @@ object Release : BuildType({
}

steps {
script {
name = "Docker multi-arch"
scriptContent = """
#!/usr/bin/env bash
echo "Building docker images for ${'$'}{RELEASE_VERSION}"
make docker-multi-arch
""".trimIndent()
formatStderrAsError = true
}
script {
name = "Release"
scriptContent = """
Expand Down Expand Up @@ -344,15 +362,23 @@ object Release : BuildType({
}
}

features {
dockerSupport {
loginToRegistry = on {
dockerRegistryId = "PROJECT_EXT_5"
}
}
}

dependencies {
dependency(Build) {
snapshot {}
snapshot {
onDependencyFailure = FailureAction.FAIL_TO_START
}

artifacts {
artifactRules = "s3sync-service*"
artifactRules = "s3sync-service-*"
}
}
snapshot(DockerBuild) {
}
}
})

0 comments on commit 069b71a

Please sign in to comment.