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'
|
remote.logLevel = 'INFO'
|
||||||
pipeline{
|
pipeline{
|
||||||
agent { node{ label'master' }}
|
agent { node{ label'master' }}
|
||||||
parameters {
|
//parameters {
|
||||||
string(defaultValue: "xsangle", name: 'dockerhub_user', description: 'Docker hub username')
|
// string(defaultValue: "xsangle", name: 'dockerhub_user', description: 'Docker hub username')
|
||||||
string(defaultValue: "", name: 'dockerhub_pat', description: 'Docker hub Personal Access Token')
|
// string(defaultValue: "", name: 'dockerhub_pat', description: 'Docker hub Personal Access Token')
|
||||||
}
|
//}
|
||||||
options {
|
options {
|
||||||
// Limit build history with buildDiscarder option:
|
// Limit build history with buildDiscarder option:
|
||||||
// daysToKeepStr: history is only kept up to this many days.
|
// daysToKeepStr: history is only kept up to this many days.
|
||||||
@ -36,9 +36,6 @@ pipeline{
|
|||||||
set -e
|
set -e
|
||||||
export WORKSPACE=$(realpath "./jenkins/workspace/antosaio-docker")
|
export WORKSPACE=$(realpath "./jenkins/workspace/antosaio-docker")
|
||||||
cd $WORKSPACE
|
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
|
docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
|
||||||
for arch in arm arm64 amd64 ; do
|
for arch in arm arm64 amd64 ; do
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
|
Loading…
Reference in New Issue
Block a user