Skip to content

Commit

Permalink
Update CI files
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
pulpbot authored and fao89 committed May 16, 2022
1 parent c1bea33 commit 66712c0
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .ci/scripts/update_ci_branches.py
Expand Up @@ -21,7 +21,7 @@
}

if not initial_branch or initial_branch not in branches:
starting = -2
exit("Initial branch not found")
else:
starting = branches.index(initial_branch)

Expand Down
2 changes: 1 addition & 1 deletion .github/template_gitref
@@ -1 +1 @@
2021.08.26-127-gfedbecb
2021.08.26-129-gf780fda
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -202,7 +202,7 @@ jobs:
if: always()
run: |
echo "Need to debug? Please check: https://github.com/marketplace/actions/debugging-with-tmate"
http --timeout 30 --check-status --pretty format --print hb https://pulp/pulp/api/v3/status/ || true
http --timeout 30 --check-status --pretty format --print hb "https://pulp${PULP_API_ROOT}api/v3/status/" || true
docker images || true
docker ps -a || true
docker logs pulp || true
Expand Down Expand Up @@ -330,7 +330,7 @@ jobs:
if: always()
run: |
echo "Need to debug? Please check: https://github.com/marketplace/actions/debugging-with-tmate"
http --timeout 30 --check-status --pretty format --print hb https://pulp/pulp/api/v3/status/ || true
http --timeout 30 --check-status --pretty format --print hb "https://pulp${PULP_API_ROOT}api/v3/status/" || true
docker images || true
docker ps -a || true
docker logs pulp || true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Expand Up @@ -159,7 +159,7 @@ jobs:
if: always()
run: |
echo "Need to debug? Please check: https://github.com/marketplace/actions/debugging-with-tmate"
http --timeout 30 --check-status --pretty format --print hb https://pulp/pulp/api/v3/status/ || true
http --timeout 30 --check-status --pretty format --print hb "https://pulp${PULP_API_ROOT}api/v3/status/" || true
docker images || true
docker ps -a || true
docker logs pulp || true
Expand Down Expand Up @@ -356,7 +356,7 @@ jobs:
if: always()
run: |
echo "Need to debug? Please check: https://github.com/marketplace/actions/debugging-with-tmate"
http --timeout 30 --check-status --pretty format --print hb https://pulp/pulp/api/v3/status/ || true
http --timeout 30 --check-status --pretty format --print hb "https://pulp${PULP_API_ROOT}api/v3/status/" || true
docker images || true
docker ps -a || true
docker logs pulp || true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Expand Up @@ -233,7 +233,7 @@ jobs:
if: always()
run: |
echo "Need to debug? Please check: https://github.com/marketplace/actions/debugging-with-tmate"
http --timeout 30 --check-status --pretty format --print hb https://pulp/pulp/api/v3/status/ || true
http --timeout 30 --check-status --pretty format --print hb "https://pulp${PULP_API_ROOT}api/v3/status/" || true
docker images || true
docker ps -a || true
docker logs pulp || true
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/scripts/install.sh
Expand Up @@ -15,6 +15,8 @@ set -euv

source .github/workflows/scripts/utils.sh

export PULP_API_ROOT="/pulp/"

if [[ "$TEST" = "docs" || "$TEST" = "publish" ]]; then
pip install -r ../pulpcore/doc_requirements.txt
pip install -r doc_requirements.txt
Expand Down Expand Up @@ -103,7 +105,6 @@ if [ "$TEST" = "s3" ]; then
sed -i -e '$a s3_test: true\
minio_access_key: "'$MINIO_ACCESS_KEY'"\
minio_secret_key: "'$MINIO_SECRET_KEY'"' vars/main.yaml
echo "PULP_API_ROOT=/rerouted/djnd/" >> "$GITHUB_ENV"
export PULP_API_ROOT="/rerouted/djnd/"
fi

Expand All @@ -123,6 +124,8 @@ if [ "$TEST" = "azure" ]; then
sed -i -e '$a azure_test: true' vars/main.yaml
fi

echo "PULP_API_ROOT=${PULP_API_ROOT}" >> "$GITHUB_ENV"

if [ "${PULP_API_ROOT:-}" ]; then
sed -i -e '$a api_root: "'"$PULP_API_ROOT"'"' vars/main.yaml
fi
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/scripts/script.sh
Expand Up @@ -45,10 +45,7 @@ if [[ "$TEST" = "docs" ]]; then
fi

if [[ "${RELEASE_WORKFLOW:-false}" == "true" ]]; then
STATUS_ENDPOINT="${PULP_URL}/pulp/api/v3/status/"
if [ "${PULP_API_ROOT:-}" ]; then
STATUS_ENDPOINT="${PULP_URL}${PULP_API_ROOT}api/v3/status/"
fi
STATUS_ENDPOINT="${PULP_URL}${PULP_API_ROOT}api/v3/status/"
echo $STATUS_ENDPOINT
REPORTED_VERSION=$(http $STATUS_ENDPOINT | jq --arg plugin ansible --arg legacy_plugin pulp_ansible -r '.versions[] | select(.component == $plugin or .component == $legacy_plugin) | .version')
response=$(curl --write-out %{http_code} --silent --output /dev/null https://pypi.org/project/pulp-ansible/$REPORTED_VERSION/)
Expand Down
3 changes: 2 additions & 1 deletion template_config.yml
@@ -1,14 +1,15 @@
# This config represents the latest values used when running the plugin-template. Any settings that
# were not present before running plugin-template have been added with their default values.

# generated with plugin_template@2021.08.26-125-g1923e98
# generated with plugin_template@2021.08.26-129-gf780fda

additional_repos:
- bindings: false
branch: master
name: galaxy-importer
org: ansible
aiohttp_fixtures_origin: 172.18.0.1
api_root: /pulp/
black: true
check_commit_message: true
check_gettext: true
Expand Down

0 comments on commit 66712c0

Please sign in to comment.