Skip to content

Commit

Permalink
fix release build (#59)
Browse files Browse the repository at this point in the history
* fail build on failed dependencies

* split docker auto and release builds

* Revert "split docker auto and release builds"

This reverts commit b26768e

* test variables inheritance

* try overriding RELEASE_VERSION

* try overriding RELEASE_VERSION

* build docker images in the release job

* fix docker auto-build job

* fix application build process, fixes #52

* arm artifacts

* adjust log level

* configurable retry options

* add app and version fields to logs

* check if runs in k8s and adjust checksum workers number accordingly

* by default run only 2 checksum workers in k8s

* fix go build recipes

* pass version to the docker build

* logstash/filebeat compatible logging

* add version to the build

* more advanced build chain

* fixed RELEASE_VERSION property

* fix dependencies

* fix reverse dep parameter

* simplify pipeline for now

* godeps build step

* params adjustment

* enable godeps

* run unit tests before release

* get rid of godeps

* fix release build
  • Loading branch information
mazay authored Oct 7, 2020
1 parent 5b47260 commit cdbd38b
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .teamcity/settings.kts
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,7 @@ object DockerBuild : BuildType({
steps {
script {
name = "Docker multi-arch"
scriptContent = """
#!/usr/bin/env bash
if [ "${'$'}{RELEASE_VERSION}" = "master" ]; then
RELEASE_VERSION="latest"
fi
echo "Building docker images for ${'$'}{RELEASE_VERSION}"
make docker-multi-arch
""".trimIndent()
scriptContent = "make docker-multi-arch"
formatStderrAsError = true
}
}
Expand Down Expand Up @@ -265,6 +255,7 @@ object Release : BuildType({
param("teamcity.build.default.checkoutDir", "src/s3sync-service")
param("env.RELEASE_VERSION", "")
param("env.RELEASE_CHANGELOG", "")
param("env.GOPATH", "/opt/buildagent/work")
checkbox("env.DRAFT_RELEASE", "true",
checked = "true", unchecked = "false")
checkbox("env.PRE_RELEASE", "true",
Expand Down Expand Up @@ -296,13 +287,7 @@ object Release : BuildType({
}
script {
name = "Docker multi-arch"
scriptContent = """
#!/usr/bin/env bash
echo "Building docker images for ${'$'}{RELEASE_VERSION}"
make docker-multi-arch
""".trimIndent()
scriptContent = "make docker-multi-arch"
formatStderrAsError = true
}
script {
Expand Down

0 comments on commit cdbd38b

Please sign in to comment.