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
64 changes: 59 additions & 5 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
fetch-depth: 2
fetch-depth: 2
- uses: actions/setup-python@v5
with:
python-version: "3.11"
Expand Down Expand Up @@ -87,6 +87,15 @@ jobs:
poetry run coverage run --branch -m pytest -s -v
poetry run coverage xml

- name: Test coverage for SDX CA Token API
run: |
export PATH=/root/.local/bin:$PATH
cd microservices/sdxStepTokenApi
poetry env use python3.14
poetry install --no-root
poetry run coverage run --branch -m pytest -s -v
poetry run coverage xml

- name: SonarCloud Scan
uses: sonarsource/sonarqube-scan-action@master
env:
Expand All @@ -100,7 +109,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
fetch-depth: 2
- name: Check if build needed
id: check
run: |
Expand Down Expand Up @@ -145,7 +154,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
fetch-depth: 2
- name: Check if build needed
id: check
run: |
Expand Down Expand Up @@ -190,7 +199,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
fetch-depth: 2
- name: Check if build needed
id: check
run: |
Expand Down Expand Up @@ -235,7 +244,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
fetch-depth: 2
- name: Check if build needed
id: check
run: |
Expand Down Expand Up @@ -317,3 +326,48 @@ jobs:
labels: |
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
org.opencontainers.image.revision=${{ github.sha }}

gwa-sdx-ca-token-api:
needs: sonar-scan
name: Docker Image for gwa-sdx-ca-token-api
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Check if build needed
id: check
run: |
if git diff --name-only HEAD^ HEAD | grep -q "^microservices/sdxStepTokenApi/\|^.github/workflows/dev.yml"; then
echo "build_needed=true" >> $GITHUB_OUTPUT
else
echo "build_needed=false" >> $GITHUB_OUTPUT
fi
- name: Skip message
if: steps.check.outputs.build_needed == 'false'
run: echo "No changes in sdxStepTokenApi, skipping build"
- name: Sanitize tag name
if: steps.check.outputs.build_needed == 'true'
id: tag
run: echo "tag=$(echo '${{ github.ref_name }}' | tr '/' '-')" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
if: steps.check.outputs.build_needed == 'true'
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
if: steps.check.outputs.build_needed == 'true'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
logout: false
- uses: docker/build-push-action@v5
if: steps.check.outputs.build_needed == 'true'
with:
context: microservices/sdxStepTokenApi
file: microservices/sdxStepTokenApi/Dockerfile
push: true
tags: ghcr.io/bcgov/gwa-api/gwa-sdx-ca-token-api:${{ steps.tag.outputs.tag }}
labels: |
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
org.opencontainers.image.revision=${{ github.sha }}
18 changes: 0 additions & 18 deletions .github/workflows/gh-pages.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ jobs:
poetry run coverage run --branch -m pytest -s -v
poetry run coverage xml

- name: Test coverage for SDX CA Token API
run: |
export PATH=/root/.local/bin:$PATH
cd microservices/sdxStepTokenApi
poetry env use python3.14
poetry install --no-root
poetry run coverage run --branch -m pytest -s -v
poetry run coverage xml

- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
Expand Down Expand Up @@ -157,6 +166,17 @@ jobs:
file: microservices/csitOasValidationApi/Dockerfile
push: true
tags: ghcr.io/bcgov/gwa-api/gwa-csit-oas-validation-api:${{ steps.release.outputs.tag_name }}
labels: |
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
org.opencontainers.image.revision=${{ github.sha }}

- name: Create gwa-sdx-ca-token-api docker image related to the release
uses: docker/build-push-action@v5
with:
context: microservices/sdxStepTokenApi
file: microservices/sdxStepTokenApi/Dockerfile
push: true
tags: ghcr.io/bcgov/gwa-api/gwa-sdx-ca-token-api:${{ steps.release.outputs.tag_name }}
labels: |
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
org.opencontainers.image.revision=${{ github.sha }}
3 changes: 0 additions & 3 deletions docs/AVAILABLE-PLUGINS.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/COMMON-CONFIG.md

This file was deleted.

153 changes: 0 additions & 153 deletions docs/OCP4-MIGRATION.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/SSL.md

This file was deleted.

Binary file removed docs/guides/assets/oauth2.png
Binary file not shown.
3 changes: 0 additions & 3 deletions docs/guides/intro-signed-jwt.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/guides/tutorial-idp-client-cred-flow.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/guides/user-journey.md

This file was deleted.

12 changes: 0 additions & 12 deletions docs/samples/service-plugins/service-acl.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions docs/samples/service-plugins/service-gwa-endpoint.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions docs/samples/service-plugins/service-gwa-ip-anonymity.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions docs/samples/service-plugins/service-ip-restriction.yaml

This file was deleted.

Loading
Loading