Skip to content

Commit

Permalink
use ESTAFETTE_GIT_OWNER and ESTAFETTE_GIT_NAME for all urls in manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
JorritSalverda committed Sep 14, 2020
1 parent 5127577 commit ef73267
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .estafette.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -62,19 +62,19 @@ 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}'

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}'
Expand Down

0 comments on commit ef73267

Please sign in to comment.