This commit is contained in:
hoangvv 2025-01-08 00:43:31 +07:00
parent 4a39d75d3b
commit 6332fb5dee
3 changed files with 4 additions and 2 deletions

2
Jenkinsfile vendored
View File

@ -5,7 +5,7 @@ node('Node-Dev-100163') {
checkout scm
}
stage('Cleanup') {
sh './setup/update_tag.sh ${env.BRANCH_NAME}'
sh 'make update_tag CURR_BRANCH=${env.BRANCH_NAME}'
sh 'make clean_up'
}
stage('Build') {

View File

@ -39,6 +39,8 @@ run_server_docker:
fi
cd ${DEPLOY_PATH} &&\
${DOCKER_COMPOSE_CMD} up -d
update_tag:
${SETUP_PATH}/update_tag.sh $(CURR_BRANCH)
restore_database:
@echo "Checking for backup.zip in container..."
@if sudo docker exec ${CONTAINER_ID} test -f /etc/odoo/backup/backup.zip; then \

View File

@ -1,3 +1,3 @@
#!/usr/bin/bash
set +x
sed -i "s/TAG := \$(shell rev-parse --abbrev-ref HEAD)/TAG := $1/g" Makefile