Skip to content

Commit c9514df

Browse files
ci: Remove sphinx theme deployments (#299)
1 parent 3067294 commit c9514df

File tree

2 files changed

+67
-82
lines changed

2 files changed

+67
-82
lines changed

.github/workflows/on-push.yaml

Lines changed: 48 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -3,84 +3,76 @@ name: Push workflow
33
on:
44
push:
55
branches:
6-
- '**'
6+
- "**"
77
tags-ignore:
8-
- '*.*'
8+
- "*.*"
99

1010
jobs:
11-
1211
housekeeping:
1312
runs-on: ubuntu-latest
1413
steps:
15-
- uses: actions/checkout@v4
16-
- name: Perform housekeeping checks
17-
env:
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19-
run: |
20-
source <(curl -sL http://ci.q-ctrl.com)
21-
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
22-
./ci docker run qctrl/ci-images:python-3.11-ci /scripts/housekeeping.sh
14+
- uses: actions/checkout@v4
15+
- name: Perform housekeeping checks
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
run: |
19+
source <(curl -sL http://ci.q-ctrl.com)
20+
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
21+
./ci docker run qctrl/ci-images:python-3.11-ci /scripts/housekeeping.sh
2322
2423
linting:
2524
runs-on: ubuntu-latest
2625
steps:
27-
- uses: actions/checkout@v4
28-
- name: Install Python dependencies
29-
run: |
30-
source <(curl -sL http://ci.q-ctrl.com)
31-
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
32-
./ci docker run qctrl/ci-images:python-3.11-ci /scripts/install-python-dependencies.sh
33-
- name: Run Pre-Commit
34-
run: |
35-
./ci docker run qctrl/ci-images:python-3.11-ci poetry run pre-commit run -- -a
26+
- uses: actions/checkout@v4
27+
- name: Install Python dependencies
28+
run: |
29+
source <(curl -sL http://ci.q-ctrl.com)
30+
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
31+
./ci docker run qctrl/ci-images:python-3.11-ci /scripts/install-python-dependencies.sh
32+
- name: Run Pre-Commit
33+
run: |
34+
./ci docker run qctrl/ci-images:python-3.11-ci poetry run pre-commit run -- -a
3635
3736
pytest:
3837
runs-on: ubuntu-latest
3938
strategy:
4039
matrix:
4140
python: ["3.9", "3.10", "3.11"]
4241
steps:
43-
- uses: actions/checkout@v4
44-
- name: Install Python dependencies
45-
run: |
46-
source <(curl -sL http://ci.q-ctrl.com)
47-
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
48-
./ci docker run qctrl/ci-images:python-${{ matrix.python }}-ci /scripts/install-python-dependencies.sh
49-
- name: Run Pytest
50-
run: |
51-
./ci docker run qctrl/ci-images:python-${{ matrix.python }}-ci /scripts/pytest.sh
42+
- uses: actions/checkout@v4
43+
- name: Install Python dependencies
44+
run: |
45+
source <(curl -sL http://ci.q-ctrl.com)
46+
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
47+
./ci docker run qctrl/ci-images:python-${{ matrix.python }}-ci /scripts/install-python-dependencies.sh
48+
- name: Run Pytest
49+
run: |
50+
./ci docker run qctrl/ci-images:python-${{ matrix.python }}-ci /scripts/pytest.sh
5251
5352
publish_internally:
5453
runs-on: ubuntu-latest
5554
steps:
56-
- uses: actions/checkout@v4
57-
- name: Publish development version
58-
env:
59-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60-
run: |
61-
source <(curl -sL http://ci.q-ctrl.com)
62-
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
63-
./ci docker run qctrl/ci-images:python-3.11-ci /scripts/publish-dev-version.sh
55+
- uses: actions/checkout@v4
56+
- name: Publish development version
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
run: |
60+
source <(curl -sL http://ci.q-ctrl.com)
61+
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
62+
./ci docker run qctrl/ci-images:python-3.11-ci /scripts/publish-dev-version.sh
6463
6564
sphinx_documentation:
6665
runs-on: ubuntu-latest
6766
steps:
68-
- uses: actions/checkout@v4
69-
- name: Build Sphinx Image and Push to DockerHub
70-
run: |
71-
source <(curl -sL http://ci.q-ctrl.com)
72-
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
73-
./ci vault get -t $(cat .token) -p secret/data/dockerhub -k hub_user -o .hub_user
74-
./ci vault get -t $(cat .token) -p secret/data/dockerhub -k hub_pass -o .hub_pass
75-
./ci docker buildPush \
76-
-f ./docs/Dockerfile \
77-
-u $(cat .hub_user) \
78-
-p $(cat .hub_pass) \
79-
--suffix -docs
80-
- name: Update Sphinx deployment in Kubernetes (Development)
81-
if: github.ref == 'refs/heads/master'
82-
run: |
83-
./ci docker run qctrl/ci-images:google-cloud-sdk-ci sh -- -c '
84-
. /scripts/connect-to-dev-cluster.sh;
85-
kubectl -n qctrl-platform set image deployment/open-controls-docs open-controls-docs=qctrl/open-controls-docs:$COMMIT && kubectl -n qctrl-platform rollout status deployment/open-controls-docs;
86-
'
67+
- uses: actions/checkout@v4
68+
- name: Build Sphinx Image and Push to DockerHub
69+
run: |
70+
source <(curl -sL http://ci.q-ctrl.com)
71+
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
72+
./ci vault get -t $(cat .token) -p secret/data/dockerhub -k hub_user -o .hub_user
73+
./ci vault get -t $(cat .token) -p secret/data/dockerhub -k hub_pass -o .hub_pass
74+
./ci docker buildPush \
75+
-f ./docs/Dockerfile \
76+
-u $(cat .hub_user) \
77+
-p $(cat .hub_pass) \
78+
--suffix -docs

.github/workflows/on-release.yaml

Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,28 @@ on:
55
types: [published]
66

77
jobs:
8-
98
release:
109
runs-on: ubuntu-latest
1110
steps:
12-
- uses: actions/checkout@v4
13-
with:
14-
fetch-depth: 0
15-
- name: Update version in code
16-
env:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18-
run: |
19-
source <(curl -sL http://ci.q-ctrl.com)
20-
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
21-
./ci docker run qctrl/ci-images:python-3.11-ci /scripts/housekeeping.sh
22-
- name: Publish publicly
23-
env:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
run: |
26-
source <(curl -sL http://ci.q-ctrl.com)
27-
./ci docker run qctrl/ci-images:python-3.11-ci /scripts/publish-release-publicly.sh
28-
- name: Publish internally
29-
run: |
30-
./ci docker run qctrl/ci-images:python-3.11-ci /scripts/publish-release-internally.sh
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- name: Update version in code
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
run: |
18+
source <(curl -sL http://ci.q-ctrl.com)
19+
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
20+
./ci docker run qctrl/ci-images:python-3.11-ci /scripts/housekeeping.sh
21+
- name: Publish publicly
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
run: |
25+
source <(curl -sL http://ci.q-ctrl.com)
26+
./ci docker run qctrl/ci-images:python-3.11-ci /scripts/publish-release-publicly.sh
27+
- name: Publish internally
28+
run: |
29+
./ci docker run qctrl/ci-images:python-3.11-ci /scripts/publish-release-internally.sh
3130
3231
update_documentation:
3332
if: false # This job is disabled until https://qctrl.atlassian.net/browse/ACC-386 is resolved
@@ -63,9 +62,3 @@ jobs:
6362
-u $(cat .hub_user) \
6463
-p $(cat .hub_pass) \
6564
--suffix -docs
66-
- name: Update Sphinx deployment in Kubernetes (Production)
67-
run: |
68-
./ci docker run qctrl/ci-images:google-cloud-sdk-ci sh -- -c '
69-
. /scripts/connect-to-prod-cluster.sh
70-
kubectl -n qctrl-platform rollout restart deployment/open-controls-docs && kubectl -n qctrl-platform rollout status deployment/open-controls-docs;
71-
'

0 commit comments

Comments
 (0)