Skip to content

Commit 21dfc42

Browse files
pulpbotfao89
authored andcommitted
Update CI files
[noissue]
1 parent e8f1ee3 commit 21dfc42

File tree

8 files changed

+15
-14
lines changed

8 files changed

+15
-14
lines changed

.ci/scripts/update_ci_branches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222

2323
if not initial_branch or initial_branch not in branches:
24-
starting = -2
24+
exit("Initial branch not found")
2525
else:
2626
starting = branches.index(initial_branch)
2727

.github/template_gitref

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021.08.26-127-gfedbecb
1+
2021.08.26-129-gf780fda

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ jobs:
204204
if: always()
205205
run: |
206206
echo "Need to debug? Please check: https://github.com/marketplace/actions/debugging-with-tmate"
207-
http --timeout 30 --check-status --pretty format --print hb https://pulp/pulp/api/v3/status/ || true
207+
http --timeout 30 --check-status --pretty format --print hb "https://pulp${PULP_API_ROOT}api/v3/status/" || true
208208
docker images || true
209209
docker ps -a || true
210210
docker logs pulp || true
@@ -334,7 +334,7 @@ jobs:
334334
if: always()
335335
run: |
336336
echo "Need to debug? Please check: https://github.com/marketplace/actions/debugging-with-tmate"
337-
http --timeout 30 --check-status --pretty format --print hb https://pulp/pulp/api/v3/status/ || true
337+
http --timeout 30 --check-status --pretty format --print hb "https://pulp${PULP_API_ROOT}api/v3/status/" || true
338338
docker images || true
339339
docker ps -a || true
340340
docker logs pulp || true

.github/workflows/nightly.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jobs:
161161
if: always()
162162
run: |
163163
echo "Need to debug? Please check: https://github.com/marketplace/actions/debugging-with-tmate"
164-
http --timeout 30 --check-status --pretty format --print hb https://pulp/pulp/api/v3/status/ || true
164+
http --timeout 30 --check-status --pretty format --print hb "https://pulp${PULP_API_ROOT}api/v3/status/" || true
165165
docker images || true
166166
docker ps -a || true
167167
docker logs pulp || true
@@ -358,7 +358,7 @@ jobs:
358358
if: always()
359359
run: |
360360
echo "Need to debug? Please check: https://github.com/marketplace/actions/debugging-with-tmate"
361-
http --timeout 30 --check-status --pretty format --print hb https://pulp/pulp/api/v3/status/ || true
361+
http --timeout 30 --check-status --pretty format --print hb "https://pulp${PULP_API_ROOT}api/v3/status/" || true
362362
docker images || true
363363
docker ps -a || true
364364
docker logs pulp || true
@@ -476,7 +476,7 @@ jobs:
476476
if: always()
477477
run: |
478478
echo "Need to debug? Please check: https://github.com/marketplace/actions/debugging-with-tmate"
479-
http --timeout 30 --check-status --pretty format --print hb https://pulp/pulp/api/v3/status/ || true
479+
http --timeout 30 --check-status --pretty format --print hb "https://pulp${PULP_API_ROOT}api/v3/status/" || true
480480
docker images || true
481481
docker ps -a || true
482482
docker logs pulp || true

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ jobs:
234234
if: always()
235235
run: |
236236
echo "Need to debug? Please check: https://github.com/marketplace/actions/debugging-with-tmate"
237-
http --timeout 30 --check-status --pretty format --print hb https://pulp/pulp/api/v3/status/ || true
237+
http --timeout 30 --check-status --pretty format --print hb "https://pulp${PULP_API_ROOT}api/v3/status/" || true
238238
docker images || true
239239
docker ps -a || true
240240
docker logs pulp || true

.github/workflows/scripts/install.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ set -euv
1515

1616
source .github/workflows/scripts/utils.sh
1717

18+
export PULP_API_ROOT="/pulp/"
19+
1820
if [[ "$TEST" = "docs" || "$TEST" = "publish" ]]; then
1921
pip install -r ../pulpcore/doc_requirements.txt
2022
pip install -r doc_requirements.txt
@@ -120,7 +122,6 @@ if [ "$TEST" = "s3" ]; then
120122
sed -i -e '$a s3_test: true\
121123
minio_access_key: "'$MINIO_ACCESS_KEY'"\
122124
minio_secret_key: "'$MINIO_SECRET_KEY'"' vars/main.yaml
123-
echo "PULP_API_ROOT=/rerouted/djnd/" >> "$GITHUB_ENV"
124125
export PULP_API_ROOT="/rerouted/djnd/"
125126
fi
126127

@@ -140,6 +141,8 @@ if [ "$TEST" = "azure" ]; then
140141
sed -i -e '$a azure_test: true' vars/main.yaml
141142
fi
142143

144+
echo "PULP_API_ROOT=${PULP_API_ROOT}" >> "$GITHUB_ENV"
145+
143146
if [ "${PULP_API_ROOT:-}" ]; then
144147
sed -i -e '$a api_root: "'"$PULP_API_ROOT"'"' vars/main.yaml
145148
fi

.github/workflows/scripts/script.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ if [[ "$TEST" = "docs" ]]; then
4545
fi
4646

4747
if [[ "${RELEASE_WORKFLOW:-false}" == "true" ]]; then
48-
STATUS_ENDPOINT="${PULP_URL}/pulp/api/v3/status/"
49-
if [ "${PULP_API_ROOT:-}" ]; then
50-
STATUS_ENDPOINT="${PULP_URL}${PULP_API_ROOT}api/v3/status/"
51-
fi
48+
STATUS_ENDPOINT="${PULP_URL}${PULP_API_ROOT}api/v3/status/"
5249
echo $STATUS_ENDPOINT
5350
REPORTED_VERSION=$(http $STATUS_ENDPOINT | jq --arg plugin file --arg legacy_plugin pulp_file -r '.versions[] | select(.component == $plugin or .component == $legacy_plugin) | .version')
5451
response=$(curl --write-out %{http_code} --silent --output /dev/null https://pypi.org/project/pulp-file/$REPORTED_VERSION/)

template_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# This config represents the latest values used when running the plugin-template. Any settings that
22
# were not present before running plugin-template have been added with their default values.
33

4-
# generated with [email protected]125-g1923e98
4+
# generated with [email protected]129-gf780fda
55

66
additional_repos:
77
- branch: main
88
name: pulp-certguard
99
aiohttp_fixtures_origin: 172.18.0.1
10+
api_root: /pulp/
1011
black: true
1112
check_commit_message: true
1213
check_gettext: true

0 commit comments

Comments
 (0)