forked from pulp/pulp-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "Ostree installation test" | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-data: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: "actions/checkout@v4" | ||
with: | ||
ref: docs-data | ||
|
||
- name: "Set up Python" | ||
uses: "actions/setup-python@v5" | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: "Install System dependencies" | ||
run: | | ||
sudo apt install -y libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-4.0 | ||
- name: "Install Python dependencies" | ||
run: | | ||
pip install git+https://github.com/pedro-psb/pulp-docs@gen-and-store-api-json-in-pulp-docs | ||
# python -m pulp_docs.openapi /tmp -l pulp_ostree | ||
# python -m venv /tmp/myvenv | ||
# /tmp/myvenv/bin/pip install pulpcore git+https://github.com/pulp/pulp_ostree | ||
# experiments with the deps to get it working | ||
# - name: Setup tmate session | ||
# uses: mxschmitt/action-tmate@v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "Update Data Branch" | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-data: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: "actions/checkout@v4" | ||
with: | ||
ref: docs-data | ||
|
||
- name: "Set up Python" | ||
uses: "actions/setup-python@v5" | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: "Install System dependencies" | ||
run: | | ||
cat requirements_system.txt | ||
xargs sudo apt -y install < requirements_system.txt | ||
- name: "Install Python dependencies" | ||
run: | | ||
cat requirements_python.txt | ||
pip install --upgrade pip | ||
pip install -r requirements_python.txt | ||
- name: "Generate, commit and push updated openapi specs" | ||
run: | | ||
./update-data.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM ubuntu:latest | ||
|
||
RUN apt-get -y update | ||
RUN apt-get -y upgrade | ||
RUN apt-get install -y libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-4.0 | ||
|
||
WORKDIR app | ||
|
||
COPY . . | ||
|
||
CMD ["alias", "python=python3"] | ||
CMD ["./update-data.sh", "/tmp", "-l", "pulp_ostree"] |