Skip to content

Commit

Permalink
Merge 21119d9 into 33ef064
Browse files Browse the repository at this point in the history
  • Loading branch information
daveqnet authored Oct 14, 2024
2 parents 33ef064 + 21119d9 commit 697c534
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 2 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/backend_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
env:
IMAGE: ethyca/fides:local
DEFAULT_PYTHON_VERSION: "3.10.13"
# Docker auth with read-only permissions.
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_RO_TOKEN: ${{ secrets.DOCKER_RO_TOKEN }}

jobs:
###############
Expand Down Expand Up @@ -143,6 +146,12 @@ jobs:
- name: Install Nox
run: pip install nox>=2022

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USER }}
password: ${{ env.DOCKER_RO_TOKEN }}

- name: Run Performance Tests
run: nox -s performance_tests

Expand Down Expand Up @@ -175,6 +184,12 @@ jobs:
- name: Install Nox
run: pip install nox>=2022

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USER }}
password: ${{ env.DOCKER_RO_TOKEN }}

- name: Run test suite
run: nox -s check_container_startup

Expand Down Expand Up @@ -213,6 +228,12 @@ jobs:
- name: Install Nox
run: pip install nox>=2022

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USER }}
password: ${{ env.DOCKER_RO_TOKEN }}

- name: Run test suite
run: nox -s "${{ matrix.test_selection }}"

Expand Down Expand Up @@ -256,6 +277,12 @@ jobs:
- name: Install Nox
run: pip install nox>=2022

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USER }}
password: ${{ env.DOCKER_RO_TOKEN }}

- name: Run test suite
run: nox -s "pytest(${{ matrix.test_selection }})"

Expand Down Expand Up @@ -296,6 +323,12 @@ jobs:
- name: Install Nox
run: pip install nox>=2022

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USER }}
password: ${{ env.DOCKER_RO_TOKEN }}

- name: Run external test suite
run: nox -s "pytest(ctl-external)"
env:
Expand Down Expand Up @@ -336,6 +369,12 @@ jobs:
- name: Install Nox
run: pip install nox>=2022

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USER }}
password: ${{ env.DOCKER_RO_TOKEN }}

- name: Integration Tests (External)
env:
BIGQUERY_DATASET: fidesopstest
Expand Down Expand Up @@ -413,6 +452,12 @@ jobs:
role: ${{ secrets.VAULT_ROLE }}
exportToken: True

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USER }}
password: ${{ env.DOCKER_RO_TOKEN }}

- name: SaaS Connector Tests
env:
VAULT_ADDR: ${{ secrets.VAULT_ADDR }}
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/cypress_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:

env:
CI: true
env:
# Docker auth with read-only permissions.
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_RO_TOKEN: ${{ secrets.DOCKER_RO_TOKEN }}

jobs:
Cypress-E2E:
Expand All @@ -30,6 +34,12 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USER }}
password: ${{ env.DOCKER_RO_TOKEN }}

- name: Start test environment in the background
run: nox -s "fides_env(test)" -- keep_alive

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/publish_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ on:
- "*"

env:
DOCKER_USER: ethycaci
# Docker auth with read-write (publish) permissions. Set as env in workflow root as auth is required in multiple jobs.
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}

jobs:
Expand Down Expand Up @@ -71,7 +72,7 @@ jobs:
fetch-depth: 0 # This is required to properly tag images

- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USER }}
password: ${{ env.DOCKER_TOKEN }}
Expand Down

0 comments on commit 697c534

Please sign in to comment.