mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-23 00:05:09 +00:00
add dockerfile path
This commit is contained in:
parent
8b118ca6ae
commit
6f9ed73095
1 changed files with 2 additions and 1 deletions
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
|
@ -6,6 +6,7 @@ pipeline {
|
|||
RELEASE_VERSION = readFile('version').trim()
|
||||
IMAGE_REPO = "${IMAGE_NAME}:${RELEASE_VERSION}"
|
||||
PLATFORM = 'linux/amd64,linux/arm64'
|
||||
DOCKERFILE_PATH = 'images/production/Containerfile'
|
||||
}
|
||||
stages {
|
||||
stage('Login to image Repository') {
|
||||
|
|
@ -24,7 +25,7 @@ pipeline {
|
|||
stage('Build Image') {
|
||||
steps {
|
||||
script {
|
||||
sh "docker buildx build --platform $PLATFORM --cache-from type=local,src=$IMAGE_REPO --cache-to type=local,dest=/tmp/.buildx-cache --push --tag $IMAGE_REPO ."
|
||||
sh "docker buildx build --platform $PLATFORM --cache-from type=local,src=$IMAGE_REPO --cache-to type=local,dest=/tmp/.buildx-cache --push --tag $IMAGE_REPO $DOCKERFILE_PATH"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue