Fetch tags when promoting rpm/deb

Without this any tag that isn't part of the history on master will fail
to successfully promote.  This breaks most dev builds, which don't end
up as part of master or a release branch.
This commit is contained in:
Walt Della
2022-10-04 14:38:15 -07:00
committed by Walt
parent 0bd1d1b3d5
commit 531bc515ae
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -6107,7 +6107,7 @@ steps:
- mkdir -pv "/go/src/github.com/gravitational/teleport"
- cd "/go/src/github.com/gravitational/teleport"
- git init && git remote add origin ${DRONE_REMOTE_URL}
- git fetch origin
- git fetch origin --tags
- git checkout -qf "${DRONE_TAG}"
depends_on:
- Verify build is tagged
@@ -6249,7 +6249,7 @@ steps:
- mkdir -pv "/go/src/github.com/gravitational/teleport"
- cd "/go/src/github.com/gravitational/teleport"
- git init && git remote add origin ${DRONE_REMOTE_URL}
- git fetch origin
- git fetch origin --tags
- git checkout -qf "${DRONE_TAG}"
depends_on:
- Verify build is tagged
@@ -7212,6 +7212,6 @@ steps:
WORKSPACE_DIR: /tmp/build-darwin-amd64-connect
---
kind: signature
hmac: 998e75dfe42adc26bf6ff61dc6fec6bd5f87b5c2de3de952b061192d87e40893
hmac: 65e2f6af8da82eac69c036051504edb6a9e175e2175bfe4ac40631c6dbf58a79
...
+1 -1
View File
@@ -102,7 +102,7 @@ func cloneRepoCommands(cloneDirectory, commit string) []string {
fmt.Sprintf("mkdir -pv %q", cloneDirectory),
fmt.Sprintf("cd %q", cloneDirectory),
`git init && git remote add origin ${DRONE_REMOTE_URL}`,
`git fetch origin`,
`git fetch origin --tags`,
fmt.Sprintf("git checkout -qf %q", commit),
}
}