Skip to content

Commit

Permalink
Fix: use mage env with goreleaser (#457)
Browse files Browse the repository at this point in the history
* Fix: use mage env with goreleaser

* .go-version file
  • Loading branch information
mtojek authored Aug 2, 2021
1 parent e665fb2 commit e1c0ac3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ pipeline {
tag pattern: '(v)?\\d+\\.\\d+\\.\\d+', comparator: 'REGEXP'
}
steps {
withCredentials([string(credentialsId: "${GITHUB_TOKEN_CREDENTIALS}", variable: 'GITHUB_TOKEN')]) {
dir("${BASE_DIR}") {
sh 'curl -sL https://git.io/goreleaser | bash'
withMageEnv(){
withCredentials([string(credentialsId: "${GITHUB_TOKEN_CREDENTIALS}", variable: 'GITHUB_TOKEN')]) {
dir("${BASE_DIR}") {
sh 'curl -sL https://git.io/goreleaser | bash'
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions .go-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.16.6

0 comments on commit e1c0ac3

Please sign in to comment.