Jenkinsfile.public: specify main branch for docker build
Docker build defaults to the master branch, when specifying a git repo. With this change, it should be smart enough to use the proper main branch.
This commit is contained in:
parent
7f1871b8f1
commit
02d7638eda
@ -2,7 +2,7 @@ pipeline {
|
|||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
label 'main'
|
label 'main'
|
||||||
image docker.build("storj-ci", "--pull https://github.com/storj/ci.git").id
|
image docker.build("storj-ci", "--pull git://github.com/storj/ci.git#main").id
|
||||||
args '-u root:root --cap-add SYS_PTRACE -v "/tmp/gomod":/go/pkg/mod -v "/tmp/npm":/npm --tmpfs "/tmp:exec,mode=777"'
|
args '-u root:root --cap-add SYS_PTRACE -v "/tmp/gomod":/go/pkg/mod -v "/tmp/npm":/npm --tmpfs "/tmp:exec,mode=777"'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user