Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 2 additions & 20 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
./ci docker run qctrl/python-build:3.7 poetry run black -- --check .
- name: Run Pylint
run: |
./ci docker run qctrl/python-build:3.7 poetry run pylint_runner
./ci docker run qctrl/python-build:3.7 poetry run pylint_runner

pytest:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -66,7 +66,6 @@ jobs:
./ci docker run qctrl/python-build:3.7 /scripts/publish-dev-version.sh

sphinx_documentation:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -80,30 +79,13 @@ jobs:
-f ./docs/Dockerfile \
-u $(cat .hub_user) \
-p $(cat .hub_pass) \
-t development \
--suffix -docs
- name: Update Sphinx deployment in Kubernetes (Development)
if: github.ref == 'refs/heads/master'
run: |
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
./ci vault gcpKey -t $(cat .token) --proj q-ctrl-documentation -r docs -o ./gcloud-service-key.json
gcloud auth activate-service-account --key-file=./gcloud-service-key.json
gcloud config set project q-ctrl-documentation
gcloud container clusters get-credentials docs-development --zone us-central1-c
kubectl -n docs-dev rollout restart deployment/python-open-controls-docs

sphinx_documentation_test:
if: github.ref != 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Sphinx Image and Push to DockerHub
run: |
source <(curl -sL http://ci.q-ctrl.com)
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
./ci vault get -t $(cat .token) -p secret/data/dockerhub -k hub_user -o .hub_user
./ci vault get -t $(cat .token) -p secret/data/dockerhub -k hub_pass -o .hub_pass
./ci docker buildPush \
-f ./docs/Dockerfile \
-u $(cat .hub_user) \
-p $(cat .hub_pass) \
--suffix -docs
1 change: 0 additions & 1 deletion .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
-f ./docs/Dockerfile \
-u $(cat .hub_user) \
-p $(cat .hub_pass) \
-t latest \
--suffix -docs
- name: Update Sphinx deployment in Kubernetes (Production)
run: |
Expand Down