Update 'Jenkinsfile'
This commit is contained in:
parent
9ba0a0f4bc
commit
0917bde68a
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -8,10 +8,10 @@ remote.agent = false
|
||||
remote.logLevel = 'INFO'
|
||||
pipeline{
|
||||
agent { node{ label'master' }}
|
||||
parameters {
|
||||
string(defaultValue: "xsangle", name: 'dockerhub_user', description: 'Docker hub username')
|
||||
string(defaultValue: "", name: 'dockerhub_pat', description: 'Docker hub Personal Access Token')
|
||||
}
|
||||
//parameters {
|
||||
// string(defaultValue: "xsangle", name: 'dockerhub_user', description: 'Docker hub username')
|
||||
// string(defaultValue: "", name: 'dockerhub_pat', description: 'Docker hub Personal Access Token')
|
||||
//}
|
||||
options {
|
||||
// Limit build history with buildDiscarder option:
|
||||
// daysToKeepStr: history is only kept up to this many days.
|
||||
@ -36,9 +36,6 @@ pipeline{
|
||||
set -e
|
||||
export WORKSPACE=$(realpath "./jenkins/workspace/antosaio-docker")
|
||||
cd $WORKSPACE
|
||||
# login to dockerhub
|
||||
echo $dockerhub_pat > /tmp/docker-pat
|
||||
cat /tmp/docker-pat | docker login -u $dockerhub_user --password-stdin
|
||||
docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
|
||||
for arch in arm arm64 amd64 ; do
|
||||
docker buildx build \
|
||||
|
Loading…
Reference in New Issue
Block a user