mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-01 13:39:37 +08:00
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:
+3
-3
@@ -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
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user