diff --git a/.estafette.yaml b/.estafette.yaml index 0e37c9e..ff5335c 100644 --- a/.estafette.yaml +++ b/.estafette.yaml @@ -23,9 +23,9 @@ stages: commands: - go vet ./... - go test -failfast -vet=off ./... - - GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -ldflags "-X github.com/estafette/estafette-gcp-network-planner/cmd.appgroup=${ESTAFETTE_LABEL_APP_GROUP} -X github.com/estafette/estafette-gcp-network-planner/cmd.app=${ESTAFETTE_GIT_NAME} -X github.com/estafette/estafette-gcp-network-planner/cmd.version=${ESTAFETTE_BUILD_VERSION} -X github.com/estafette/estafette-gcp-network-planner/cmd.revision=${ESTAFETTE_GIT_REVISION} -X github.com/estafette/estafette-gcp-network-planner/cmd.branch=${ESTAFETTE_GIT_BRANCH} -X github.com/estafette/estafette-gcp-network-planner/cmd.buildDate=${ESTAFETTE_BUILD_DATETIME}" -o ./binaries/${ESTAFETTE_GIT_NAME}-v${ESTAFETTE_BUILD_VERSION}-linux-amd64 . - - GOOS=windows GOARCH=amd64 go build -a -installsuffix cgo -ldflags "-X github.com/estafette/estafette-gcp-network-planner/cmd.appgroup=${ESTAFETTE_LABEL_APP_GROUP} -X github.com/estafette/estafette-gcp-network-planner/cmd.app=${ESTAFETTE_GIT_NAME} -X github.com/estafette/estafette-gcp-network-planner/cmd.version=${ESTAFETTE_BUILD_VERSION} -X github.com/estafette/estafette-gcp-network-planner/cmd.revision=${ESTAFETTE_GIT_REVISION} -X github.com/estafette/estafette-gcp-network-planner/cmd.branch=${ESTAFETTE_GIT_BRANCH} -X github.com/estafette/estafette-gcp-network-planner/cmd.buildDate=${ESTAFETTE_BUILD_DATETIME}" -o ./binaries/${ESTAFETTE_GIT_NAME}-v${ESTAFETTE_BUILD_VERSION}-windows-amd64.exe . - - GOOS=darwin GOARCH=amd64 go build -a -installsuffix cgo -ldflags "-X github.com/estafette/estafette-gcp-network-planner/cmd.appgroup=${ESTAFETTE_LABEL_APP_GROUP} -X github.com/estafette/estafette-gcp-network-planner/cmd.app=${ESTAFETTE_GIT_NAME} -X github.com/estafette/estafette-gcp-network-planner/cmd.version=${ESTAFETTE_BUILD_VERSION} -X github.com/estafette/estafette-gcp-network-planner/cmd.revision=${ESTAFETTE_GIT_REVISION} -X github.com/estafette/estafette-gcp-network-planner/cmd.branch=${ESTAFETTE_GIT_BRANCH} -X github.com/estafette/estafette-gcp-network-planner/cmd.buildDate=${ESTAFETTE_BUILD_DATETIME}" -o ./binaries/${ESTAFETTE_GIT_NAME}-v${ESTAFETTE_BUILD_VERSION}-darwin-amd64 . + - GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -ldflags "-X github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/cmd.appgroup=${ESTAFETTE_LABEL_APP_GROUP} -X github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/cmd.app=${ESTAFETTE_GIT_NAME} -X github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/cmd.version=${ESTAFETTE_BUILD_VERSION} -X github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/cmd.revision=${ESTAFETTE_GIT_REVISION} -X github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/cmd.branch=${ESTAFETTE_GIT_BRANCH} -X github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/cmd.buildDate=${ESTAFETTE_BUILD_DATETIME}" -o ./binaries/${ESTAFETTE_GIT_NAME}-v${ESTAFETTE_BUILD_VERSION}-linux-amd64 . + - GOOS=windows GOARCH=amd64 go build -a -installsuffix cgo -ldflags "-X github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/cmd.appgroup=${ESTAFETTE_LABEL_APP_GROUP} -X github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/cmd.app=${ESTAFETTE_GIT_NAME} -X github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/cmd.version=${ESTAFETTE_BUILD_VERSION} -X github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/cmd.revision=${ESTAFETTE_GIT_REVISION} -X github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/cmd.branch=${ESTAFETTE_GIT_BRANCH} -X github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/cmd.buildDate=${ESTAFETTE_BUILD_DATETIME}" -o ./binaries/${ESTAFETTE_GIT_NAME}-v${ESTAFETTE_BUILD_VERSION}-windows-amd64.exe . + - GOOS=darwin GOARCH=amd64 go build -a -installsuffix cgo -ldflags "-X github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/cmd.appgroup=${ESTAFETTE_LABEL_APP_GROUP} -X github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/cmd.app=${ESTAFETTE_GIT_NAME} -X github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/cmd.version=${ESTAFETTE_BUILD_VERSION} -X github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/cmd.revision=${ESTAFETTE_GIT_REVISION} -X github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/cmd.branch=${ESTAFETTE_GIT_BRANCH} -X github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/cmd.buildDate=${ESTAFETTE_BUILD_DATETIME}" -o ./binaries/${ESTAFETTE_GIT_NAME}-v${ESTAFETTE_BUILD_VERSION}-darwin-amd64 . create-dev-github-release: image: extensions/github-release:dev @@ -62,9 +62,9 @@ stages: create-dev-brew-formula: image: extensions/brew:dev formula: gcp-network-planner-dev - description: The command-line interface for Estafette - The resilient and cloud-native CI/CD platform (dev track) + description: The command-line interface for planning GCP networks (dev track) homepage: https://estafette.io - binaryURL: https://github.com/estafette/estafette-gcp-network-planner/releases/download/v${ESTAFETTE_BUILD_VERSION}/${ESTAFETTE_GIT_NAME}-v${ESTAFETTE_BUILD_VERSION}-darwin-amd64.zip + binaryURL: https://github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/releases/download/v${ESTAFETTE_BUILD_VERSION}/${ESTAFETTE_GIT_NAME}-v${ESTAFETTE_BUILD_VERSION}-darwin-amd64.zip tapRepoDir: homebrew-dev when: status == 'succeeded' && '${ESTAFETTE_GIT_BRANCH}' != '${ESTAFETTE_BUILD_VERSION}' @@ -72,9 +72,9 @@ stages: create-stable-brew-formula: image: extensions/brew:dev formula: gcp-network-planner - description: The command-line interface for Estafette - The resilient and cloud-native CI/CD platform + description: The command-line interface for planning GCP networks homepage: https://estafette.io - binaryURL: https://github.com/estafette/estafette-gcp-network-planner/releases/download/v${ESTAFETTE_BUILD_VERSION}/${ESTAFETTE_GIT_NAME}-v${ESTAFETTE_BUILD_VERSION}-darwin-amd64.zip + binaryURL: https://github.com/${ESTAFETTE_GIT_OWNER}/${ESTAFETTE_GIT_NAME}/releases/download/v${ESTAFETTE_BUILD_VERSION}/${ESTAFETTE_GIT_NAME}-v${ESTAFETTE_BUILD_VERSION}-darwin-amd64.zip tapRepoDir: homebrew-stable when: status == 'succeeded' && '${ESTAFETTE_GIT_BRANCH}' == '${ESTAFETTE_BUILD_VERSION}'