Skip to content

Commit 56f6aca

Browse files
authored
Merge pull request #703 from pulp/update-ci/3.12
Update CI files for branch 3.12
2 parents eaad733 + 5336978 commit 56f6aca

File tree

5 files changed

+6
-285
lines changed

5 files changed

+6
-285
lines changed

.github/template_gitref

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021.08.26-347-gc4a2504
1+
2021.08.26-349-gba81617

.github/workflows/publish.yml

Lines changed: 5 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -19,131 +19,10 @@ defaults:
1919
jobs:
2020
build:
2121
uses: "./.github/workflows/build.yml"
22-
23-
build-bindings-docs:
24-
needs:
25-
- "build"
26-
runs-on: "ubuntu-latest"
27-
# Install scripts expect TEST to be set, 'docs' is most appropriate even though we don't run tests
28-
env:
29-
TEST: "docs"
30-
steps:
31-
- uses: "actions/checkout@v4"
32-
with:
33-
fetch-depth: 1
34-
path: "pulp_python"
35-
36-
- uses: "actions/checkout@v4"
37-
with:
38-
fetch-depth: 1
39-
repository: "pulp/pulp-openapi-generator"
40-
path: "pulp-openapi-generator"
41-
42-
- uses: "actions/setup-python@v5"
43-
with:
44-
python-version: "3.11"
45-
46-
- uses: "actions/download-artifact@v4"
47-
with:
48-
name: "plugin_package"
49-
path: "pulp_python/dist/"
50-
- uses: ruby/setup-ruby@v1
51-
with:
52-
ruby-version: "2.6"
53-
54-
- name: "Install python dependencies"
55-
run: |
56-
echo ::group::PYDEPS
57-
pip install towncrier twine wheel httpie docker netaddr boto3 ansible mkdocs
58-
echo "HTTPIE_CONFIG_DIR=$GITHUB_WORKSPACE/pulp_python/.ci/assets/httpie/" >> $GITHUB_ENV
59-
echo ::endgroup::
60-
61-
# Building the bindings and docs requires accessing the OpenAPI specs endpoint, so we need to
62-
# setup the Pulp instance.
63-
- name: "Before Install"
64-
run: |
65-
.github/workflows/scripts/before_install.sh
66-
shell: "bash"
67-
env:
68-
PY_COLORS: "1"
69-
ANSIBLE_FORCE_COLOR: "1"
70-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
71-
GITHUB_CONTEXT: "${{ github.event.pull_request.commits_url }}"
72-
73-
- name: "Install"
74-
run: |
75-
.github/workflows/scripts/install.sh
76-
shell: "bash"
77-
env:
78-
PY_COLORS: "1"
79-
ANSIBLE_FORCE_COLOR: "1"
80-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
81-
GITHUB_CONTEXT: "${{ github.event.pull_request.commits_url }}"
82-
83-
- name: "Install Python client"
84-
run: |
85-
.github/workflows/scripts/install_python_client.sh
86-
shell: "bash"
87-
- name: "Install Ruby client"
88-
run: |
89-
.github/workflows/scripts/install_ruby_client.sh
90-
shell: "bash"
91-
92-
- name: "Upload python client packages"
93-
uses: "actions/upload-artifact@v4"
94-
with:
95-
name: "python-client.tar"
96-
path: |
97-
pulp_python/python-python-client.tar
98-
if-no-files-found: "error"
99-
overwrite: true
100-
101-
- name: "Upload python client docs"
102-
uses: "actions/upload-artifact@v4"
103-
with:
104-
name: "python-client-docs.tar"
105-
path: |
106-
pulp_python/python-python-client-docs.tar
107-
if-no-files-found: "error"
108-
overwrite: true
109-
- name: "Upload ruby client packages"
110-
uses: "actions/upload-artifact@v4"
111-
with:
112-
name: "ruby-client.tar"
113-
path: |
114-
pulp_python/python-ruby-client.tar
115-
if-no-files-found: "error"
116-
overwrite: true
117-
- name: Build docs
118-
run: |
119-
export DJANGO_SETTINGS_MODULE=pulpcore.app.settings
120-
export PULP_SETTINGS=$PWD/.ci/ansible/settings/settings.py
121-
make -C docs/ PULP_URL="https://pulp" diagrams html
122-
tar -cvf docs/docs.tar docs/_build
123-
124-
- name: "Upload built docs"
125-
uses: actions/upload-artifact@v4
126-
with:
127-
name: "docs.tar"
128-
path: "pulp_python/docs/docs.tar"
129-
if-no-files-found: "error"
130-
overwrite: true
131-
132-
- name: "Logs"
133-
if: always()
134-
run: |
135-
echo "Need to debug? Please check: https://github.com/marketplace/actions/debugging-with-tmate"
136-
http --timeout 30 --check-status --pretty format --print hb "https://pulp${PULP_API_ROOT}api/v3/status/" || true
137-
docker images || true
138-
docker ps -a || true
139-
docker logs pulp || true
140-
docker exec pulp ls -latr /etc/yum.repos.d/ || true
141-
docker exec pulp cat /etc/yum.repos.d/* || true
142-
docker exec pulp bash -c "pip3 list && pip3 install pipdeptree && pipdeptree"
14322
publish-package:
14423
runs-on: "ubuntu-latest"
14524
needs:
146-
- "build-bindings-docs"
25+
- "build"
14726

14827
env:
14928
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
@@ -181,7 +60,7 @@ jobs:
18160
publish-python-bindings:
18261
runs-on: "ubuntu-latest"
18362
needs:
184-
- "build-bindings-docs"
63+
- "build"
18564

18665
env:
18766
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
@@ -224,7 +103,7 @@ jobs:
224103
publish-ruby-bindings:
225104
runs-on: "ubuntu-latest"
226105
needs:
227-
- "build-bindings-docs"
106+
- "build"
228107

229108
env:
230109
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
@@ -261,7 +140,7 @@ jobs:
261140
publish-docs:
262141
runs-on: "ubuntu-latest"
263142
needs:
264-
- "build-bindings-docs"
143+
- "build"
265144

266145
env:
267146
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
@@ -308,7 +187,7 @@ jobs:
308187
create-gh-release:
309188
runs-on: "ubuntu-latest"
310189
needs:
311-
- "build-bindings-docs"
190+
- "build"
312191
- "publish-package"
313192
- "publish-python-bindings"
314193
- "publish-ruby-bindings"

.github/workflows/scripts/install_python_client.sh

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/workflows/scripts/install_ruby_client.sh

Lines changed: 0 additions & 42 deletions
This file was deleted.

CHANGES/.TEMPLATE.rst

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)