File tree Expand file tree Collapse file tree 5 files changed +31
-14
lines changed
Expand file tree Collapse file tree 5 files changed +31
-14
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ FROM {{ ci_base | default("ghcr.io/pulp/pulp-ci-centos:" + pulp_container_tag) }
33# Add source directories to container
44{% for item in plugins %}
55{% if item .source .startswith ("./" ) or item .ci_requirements | default (false ) %}
6- ADD {{ item.source }} {{ item.source }}
6+ ADD ./ {{ item.name }} ./ {{ item.name }}
77{% endif %}
88{% endfor %}
99
Original file line number Diff line number Diff line change @@ -19,8 +19,12 @@ def main():
1919 else :
2020 for spec in requirement .specifier :
2121 if spec .operator == ">=" :
22+ if requirement .name == "pulpcore" :
23+ operator = "~="
24+ else :
25+ operator = "=="
2226 min_version = str (spec )[2 :]
23- print (f"{ requirement .name } == { min_version } " )
27+ print (f"{ requirement .name } { operator } { min_version } " )
2428 break
2529 else :
2630 print (line .strip ())
Original file line number Diff line number Diff line change 1- 2021.08.26-202-g6f2c165
1+ 2021.08.26-207-g81d81f6
Original file line number Diff line number Diff line change 5858 run : python .github/workflows/scripts/release.py ${{ github.event.inputs.release }}
5959
6060 - name : ' Tar files'
61- run : tar -cvf pulp_python.tar $GITHUB_WORKSPACE
61+ run : tar -cvf pulp_python.tar .
6262
6363 - name : ' Upload Artifact'
6464 uses : actions/upload-artifact@v3
9595
9696 - name : Untar repository
9797 run : |
98- shopt -s dotglob
9998 tar -xf pulp_python.tar
100- mv home/runner/work/pulp_python/pulp_python/* ./
10199
102100 # update to the branch's latest ci files rather than the ones from the release tag. this is
103101 # helpful when there was a problem with the ci files during the release which needs to be
@@ -260,9 +258,7 @@ jobs:
260258
261259 - name : Untar repository
262260 run : |
263- shopt -s dotglob
264261 tar -xf pulp_python.tar
265- mv home/runner/work/pulp_python/pulp_python/* ./
266262
267263 # update to the branch's latest ci files rather than the ones from the release tag. this is
268264 # helpful when there was a problem with the ci files during the release which needs to be
Original file line number Diff line number Diff line change @@ -64,12 +64,29 @@ password password
6464cmd_user_stdin_prefix bash -c " chmod 600 ~pulp/.netrc"
6565
6666cd ../pulp-openapi-generator
67- for item in $( echo " $REPORTED_STATUS " | jq -r ' .versions[].package|sub("-"; "_")' )
68- do
69- ./generate.sh " ${item} " python
70- cmd_prefix pip3 install " /root/pulp-openapi-generator/${item} -client"
71- sudo rm -rf " ./${item} -client"
72- done
67+ if [ " $( echo " $REPORTED_STATUS " | jq -r ' .versions[0].package' ) " = " null" ]
68+ then
69+ # We are on an old version of pulpcore without package in the status report
70+ for app_label in $( echo " $REPORTED_STATUS " | jq -r ' .versions[].component' )
71+ do
72+ if [ " $app_label " = " core" ]
73+ then
74+ item=pulpcore
75+ else
76+ item=" pulp_${app_label} "
77+ fi
78+ ./generate.sh " ${item} " python
79+ cmd_prefix pip3 install " /root/pulp-openapi-generator/${item} -client"
80+ sudo rm -rf " ./${item} -client"
81+ done
82+ else
83+ for item in $( echo " $REPORTED_STATUS " | jq -r ' .versions[].package|sub("-"; "_")' )
84+ do
85+ ./generate.sh " ${item} " python
86+ cmd_prefix pip3 install " /root/pulp-openapi-generator/${item} -client"
87+ sudo rm -rf " ./${item} -client"
88+ done
89+ fi
7390
7491cd $REPO_ROOT
7592
You can’t perform that action at this time.
0 commit comments