Skip to content

Commit

Permalink
Update weekly-test.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Titsworth <[email protected]>
  • Loading branch information
Tyler Titsworth authored Jun 14, 2024
1 parent 01c0875 commit e5ef422
Showing 1 changed file with 50 additions and 50 deletions.
100 changes: 50 additions & 50 deletions .github/workflows/weekly-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,39 +19,39 @@ on:
workflow_dispatch: null
permissions: read-all
jobs:
get-groups:
runs-on: ubuntu-latest
outputs:
groups: ${{ steps.group-list.outputs.FOLDERS }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Output Group Directories
id: group-list
run: |
DOCKER_COMPOSE_PATHS=()
for path in $(find . -name 'docker-compose.yaml'); do
DIR_PATH=$(dirname "$path")
DOCKER_COMPOSE_PATHS+=("${DIR_PATH:2}")
done
# Convert the array to a JSON array
DOCKER_COMPOSE_PATHS_JSON=$(printf '%s\n' "${DOCKER_COMPOSE_PATHS[@]}" | uniq | jq -R '.' | jq -sc '.')
echo "FOLDERS=$DOCKER_COMPOSE_PATHS_JSON" >> $GITHUB_OUTPUT
pipeline-ci:
needs: [get-groups]
strategy:
matrix:
group: ${{ fromJson(needs.get-groups.outputs.groups) }}
experimental: [true]
fail-fast: false
uses: intel/ai-containers/.github/workflows/container-ci.yaml@main
with:
group_dir: ${{ matrix.group }}
ref: main
secrets: inherit
# get-groups:
# runs-on: ubuntu-latest
# outputs:
# groups: ${{ steps.group-list.outputs.FOLDERS }}
# steps:
# - name: Harden Runner
# uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
# with:
# egress-policy: audit
# - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
# - name: Output Group Directories
# id: group-list
# run: |
# DOCKER_COMPOSE_PATHS=()
# for path in $(find . -name 'docker-compose.yaml'); do
# DIR_PATH=$(dirname "$path")
# DOCKER_COMPOSE_PATHS+=("${DIR_PATH:2}")
# done
# # Convert the array to a JSON array
# DOCKER_COMPOSE_PATHS_JSON=$(printf '%s\n' "${DOCKER_COMPOSE_PATHS[@]}" | uniq | jq -R '.' | jq -sc '.')
# echo "FOLDERS=$DOCKER_COMPOSE_PATHS_JSON" >> $GITHUB_OUTPUT
# pipeline-ci:
# needs: [get-groups]
# strategy:
# matrix:
# group: ${{ fromJson(needs.get-groups.outputs.groups) }}
# experimental: [true]
# fail-fast: false
# uses: intel/ai-containers/.github/workflows/container-ci.yaml@main
# with:
# group_dir: ${{ matrix.group }}
# ref: main
# secrets: inherit
helm-ci:
runs-on: kubectl
steps:
Expand All @@ -62,23 +62,23 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- uses: intel/ai-containers/workflows/charts@main
- uses: intel/ai-containers/workflows/charts@tylertitsworth/fix-helm-warning
with:
config: '--all --namespace helm-ci'
config: '--namespace helm-ci'
list_changed: false
kubeconfig_path: ${{ secrets.KUBECONFIG_PATH }}
scan:
name: gitleaks
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@44c470ffc35caa8b1eb3e8012ca53c2f9bea4eb5 # v2.3.6
env:
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}}
# scan:
# name: gitleaks
# runs-on: ubuntu-latest
# steps:
# - name: Harden Runner
# uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
# with:
# egress-policy: audit
# - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
# with:
# fetch-depth: 0
# - uses: gitleaks/gitleaks-action@44c470ffc35caa8b1eb3e8012ca53c2f9bea4eb5 # v2.3.6
# env:
# GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
# GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}}

0 comments on commit e5ef422

Please sign in to comment.