-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
143 changed files
with
9,418 additions
and
8,485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,72 @@ | ||
--- | ||
name: Build Container Group Action | ||
description: 'https://github.com/intel/ai-containers/blob/main/.github/container_pipeline_format' | ||
description: https://github.com/intel/ai-containers/blob/main/.github/container_pipeline_format | ||
author: [email protected] | ||
inputs: | ||
group_dir: | ||
description: 'Directory with docker-compose.yaml to build' | ||
description: Directory with docker-compose.yaml to build | ||
required: true | ||
type: string | ||
env_overrides: | ||
description: 'Bash Env Variable Overrides in `KEY=VAL && KEY2=VAL2` format' | ||
description: Bash Env Variable Overrides in `KEY=VAL && KEY2=VAL2` format | ||
required: false | ||
type: string | ||
registry: | ||
description: 'Container Registry URL' | ||
required: true | ||
description: Container Registry URL | ||
required: false | ||
default: 'intel' | ||
type: string | ||
repo: | ||
description: Container Project Repository | ||
required: false | ||
default: 'ai-containers' | ||
type: string | ||
no-push: | ||
description: Do not push to Registry | ||
required: false | ||
default: false | ||
type: boolean | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Random Number Generator | ||
shell: bash | ||
run: echo "random-number=$(shuf -i 0-1000 -n1)" >> $GITHUB_ENV | ||
- name: Remove Containers | ||
shell: bash | ||
run: | | ||
REGISTRY=${{ inputs.registry }} \ | ||
COMPOSE_PROJECT_NAME=${{ env.random-number }} \ | ||
${{ inputs.env_overrides }} docker compose -p ${{ env.random-number }} down --rmi all | ||
- name: Build Containers | ||
shell: bash | ||
run: | | ||
REGISTRY=${{ inputs.registry }} \ | ||
REPO=${{ inputs.repo }} \ | ||
COMPOSE_PROJECT_NAME=${{ env.random-number }} \ | ||
${{ inputs.env_overrides }} docker compose -p ${{ env.random-number }} up --build --force-recreate --always-recreate-deps | ||
${{ inputs.env_overrides }} docker compose -p ${{ env.random-number }} up --build --force-recreate --always-recreate-deps | ||
working-directory: ${{ inputs.group_dir }} | ||
- name: Push Containers | ||
shell: bash | ||
if: ${{ !fromJson(inputs.no-push) }} | ||
run: | | ||
REGISTRY=${{ inputs.registry }} \ | ||
REPO=${{ inputs.repo }} \ | ||
COMPOSE_PROJECT_NAME=${{ env.random-number }} \ | ||
${{ inputs.env_overrides }} docker compose -p ${{ env.random-number }} push --ignore-push-failures | ||
working-directory: ${{ inputs.group_dir }} | ||
- name: Print Containers | ||
shell: bash | ||
run: | | ||
REGISTRY=${{ inputs.registry }} \ | ||
REPO=${{ inputs.repo }} \ | ||
COMPOSE_PROJECT_NAME=${{ env.random-number }} \ | ||
${{ inputs.env_overrides }} docker compose -p ${{ env.random-number }} images --format json | jq '.[] | "\(.Repository):\(.Tag)"' >> $GITHUB_STEP_SUMMARY | ||
working-directory: ${{ inputs.group_dir }} | ||
- name: Remove Containers | ||
- name: Un-Tag Containers | ||
if: ${{ always() }} | ||
shell: bash | ||
run: | | ||
REGISTRY=${{ inputs.registry }} \ | ||
REPO=${{ inputs.repo }} \ | ||
COMPOSE_PROJECT_NAME=${{ env.random-number }} \ | ||
${{ inputs.env_overrides }} docker compose -p ${{ env.random-number }} down --rmi all | ||
working-directory: ${{ inputs.group_dir }} | ||
- name: Remove Containers | ||
if: ${{ always() }} | ||
shell: bash | ||
run: docker system prune --force |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
ignored: | ||
- DL3006 | ||
- DL3008 | ||
- DL3009 | ||
- DL3013 | ||
- DL3059 | ||
- DL4006 | ||
- SC1008 | ||
- SC2140 | ||
- SC2239 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"ignore": [ | ||
"test-runner/test_runner.py" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
MD013: false | ||
MD024: false | ||
MD028: false | ||
MD033: false | ||
MD034: false | ||
MD041: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[MESSAGES CONTROL] | ||
disable=line-too-long, missing-module-docstring, redefined-outer-name, no-member, used-before-assignment, consider-using-with, bare-except, consider-using-dict-items, import-error, broad-exception-caught, raise-missing-from, not-an-iterable, too-few-public-methods |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
ignore: '**/templates/**.yaml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
self-hosted-runner: | ||
labels: | ||
- builder | ||
- k8-runners | ||
- aia-devops | ||
- test-runner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
--- | ||
name: Bandit Scan | ||
on: | ||
pull_request_review: | ||
types: [submitted] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
permissions: read-all | ||
|
||
jobs: | ||
scan-bandit: | ||
if: github.event.review.state == 'approved' | ||
uses: intel-innersource/frameworks.ai.infrastructure.code-scan-tools/.github/workflows/Scanner_Bandit.yml@one-ci-cd | ||
with: | ||
org: ${{ github.repository_owner }} | ||
repo: ${{ github.event.repository.name }} | ||
refs: ${{ github.event.pull_request.base.ref }} | ||
runners: "['k8-runners']" | ||
refs: ${{ github.event.pull_request.base.ref }} | ||
runners: '[''k8-runners'']' | ||
secrets: | ||
token: ${{ secrets.ACTION_TOKEN }} |
Oops, something went wrong.