add Jenkinfile
This commit is contained in:
parent
08037d0a44
commit
514d3f2e33
21
Jenkinsfile
vendored
Normal file
21
Jenkinsfile
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
echo 'Building..'
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps {
|
||||
echo 'Testing..'
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
echo 'Deploying....'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
2
Makefile
2
Makefile
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user