Skip to content

Sid/edit docker docs #723

Sid/edit docker docs

Sid/edit docker docs #723

Workflow file for this run

name: Pull Request
on:
pull_request:
types: [opened, synchronize]
branches: # Target Branches
- main
- release/*
- release-next
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
modified-files:
runs-on: ubuntu-latest
outputs:
docker-unit-required: ${{ steps.filter.outputs.docker-unit }}
helm-integration-required: ${{ steps.filter.outputs.helm-integration }}
helm-unit-required: ${{ steps.filter.outputs.helm-unit }}
steps:
- uses: actions/checkout@v6
- uses: dorny/paths-filter@v4
id: filter
with:
filters: |
docker-unit:
- '.github/workflows/test-docker.yml'
- 'docker/common-services.yaml'
- 'docker/internal-auth/**'
- 'docker/legacy-auth/**'
- 'tests/fixtures/docker/**'
- 'tests/integration/compose/**'
- 'tests/unit/compose/**'
helm-integration:
- '.github/workflows/test-integration-helm.yml'
- 'helm/fiftyone-teams-app/**'
- 'tests/fixtures/helm/**'
- 'tests/integration/helm/**'
- 'tests/unit/helm/**'
helm-unit:
- '.github/workflows/test-helm.yml'
- 'helm/fiftyone-teams-app/**'
- 'tests/fixtures/helm/**'
- 'tests/integration/helm/**'
- 'tests/unit/helm/**'
docker-unit:
needs: modified-files
if: ${{ needs.modified-files.outputs.docker-unit-required == 'true' }}
uses: ./.github/workflows/test-docker.yml
secrets:
FO_INTERNAL_LICENSE: ${{ secrets.FO_INTERNAL_LICENSE }}
FO_LEGACY_LICENSE: ${{ secrets.FO_LEGACY_LICENSE }}
ORG_RO_ALOHA_GITHUB_WORKFLOWS_FG_PAT: ${{ secrets.ORG_RO_ALOHA_GITHUB_WORKFLOWS_FG_PAT }}
REPO_GOOGLE_WORKLOAD_IDP: ${{ secrets.REPO_GOOGLE_WORKLOAD_IDP }}
helm-integration:
needs: modified-files
if: ${{ needs.modified-files.outputs.helm-integration-required == 'true' }}
uses: ./.github/workflows/test-integration-helm.yml
secrets:
ORG_RO_ALOHA_GITHUB_WORKFLOWS_FG_PAT: ${{ secrets.ORG_RO_ALOHA_GITHUB_WORKFLOWS_FG_PAT }}
REPO_GOOGLE_WORKLOAD_IDP: ${{ secrets.REPO_GOOGLE_WORKLOAD_IDP }}
helm-unit:
needs: modified-files
if: ${{ needs.modified-files.outputs.helm-unit-required == 'true' }}
uses: ./.github/workflows/test-helm.yml
secrets:
ORG_RO_ALOHA_GITHUB_WORKFLOWS_FG_PAT: ${{ secrets.ORG_RO_ALOHA_GITHUB_WORKFLOWS_FG_PAT }}
validate-chart-version:
# Always run check, even if no helm changes.
uses: ./.github/workflows/validate-chart-version.yml
all-tests:
runs-on: ubuntu-latest
needs: [docker-unit, helm-unit, helm-integration, validate-chart-version]
if: always()
steps:
- run: sh -c ${{
(needs.docker-unit.result == 'success' || needs.docker-unit.result == 'skipped') &&
(needs.helm-integration.result == 'success' || needs.helm-integration.result == 'skipped') &&
(needs.helm-unit.result == 'success' || needs.helm-unit.result == 'skipped') &&
(needs.validate-chart-version.result == 'success') }}
helm-pre-release:
needs: [all-tests, helm-unit, helm-integration, validate-chart-version]
if: |
always() &&
(needs.helm-unit.result == 'success' &&
needs.helm-integration.result == 'success' &&
needs.validate-chart-version.result == 'success')
uses: ./.github/workflows/pre-release-internal-env.yml
secrets:
REPO_GOOGLE_WORKLOAD_IDP: ${{ secrets.REPO_GOOGLE_WORKLOAD_IDP }}
WD_HCI_FG_PAT: ${{ secrets.WD_HCI_FG_PAT }}
CROSS_REPOSITORY_REPOSITORY: ${{ secrets.CROSS_REPOSITORY_REPOSITORY }}
CROSS_REPOSITORY_WORKFLOW: ${{ secrets.CROSS_REPOSITORY_WORKFLOW }}