Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
third-party
Commits
e6278391
Commit
e6278391
authored
Nov 23, 2023
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deploiement minor change
parent
eab9fccb
Pipeline
#3145
failed with stage
in 1 minute 5 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
main.sh
scripts/src/main.sh
+4
-3
supported_coops.py
scripts/src/supported_coops.py
+1
-1
No files found.
scripts/src/main.sh
View file @
e6278391
#!/bin/bash
# $1 : project name
# $2 :
prod or preprod (only preprod is
supported for now)
# $2 :
instance (prod not
supported for now)
ci_dir
=
"/home/django/third-party/scripts/src"
ci_data_dir
=
"/home/django/third-party/scripts/data"
...
...
@@ -26,4 +26,6 @@ echo "START PROCESS" "${1}" "${2}" "${repo}" "${now}"
update_code
"
${
1
}
"
"
${
2
}
"
"
${
repo
}
"
"
${
now
}
"
||
exit
1
echo
"DONE"
python3
"
${
ci_dir
}
/send_mail.py"
"
${
ci_data_dir
}
/ci_diff_third-party_
${
now
}
.txt"
"
${
ci_data_dir
}
/ci_diff_Odoo_
${
now
}
.txt"
"
${
1
}
"
\ No newline at end of file
if
[[
"
${
2
}
"
==
"preprod"
]]
;
then
python3
"
${
ci_dir
}
/send_mail.py"
"
${
ci_data_dir
}
/ci_diff_third-party_
${
now
}
.txt"
"
${
ci_data_dir
}
/ci_diff_Odoo_
${
now
}
.txt"
"
${
1
}
"
fi
scripts/src/supported_coops.py
View file @
e6278391
...
...
@@ -6,7 +6,7 @@ def is_coop_supported(coop):
def
is_instance_supported
(
instance
):
return
instance
==
"preprod"
# or instance == "prod" ; only preprod is allowed for the moment
return
instance
==
"preprod"
or
instance
==
"test"
or
instance
==
"dev"
def
get_mail
(
coop
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment