add Jenkinfile

This commit is contained in:
hoangvv 2025-01-06 13:44:28 +07:00
parent 08037d0a44
commit 514d3f2e33
2 changed files with 22 additions and 1 deletions

21
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,21 @@
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building..'
}
}
stage('Test') {
steps {
echo 'Testing..'
}
}
stage('Deploy') {
steps {
echo 'Deploying....'
}
}
}
}

View File

@ -17,7 +17,7 @@ install:
pip install -r requirements.txt
update_env:
@awk '/^ODOO_TAG=/ { $$0 = "ODOO_TAG=${BRANCH}" } 1' ${DEPLOY_PATH}/.env > ${DEPLOY_PATH}/.env.tmp && mv ${DEPLOY_PATH}/.env.tmp ${DEPLOY_PATH}/.env
build-image: update_tag
build-image: update_env
DOCKER_BUILDKIT=1 ${DOCKER_BUILD} . --progress plain --tag ${ODOO_IMAGE}
push-image:
$(DOCKERPUSH) ${ODOO_IMAGE}