-
Notifications
You must be signed in to change notification settings - Fork 201
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
26 changed files
with
290 additions
and
270 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 |
---|---|---|
|
@@ -59,13 +59,15 @@ jobs: | |
- name: SBOM Scan Container | ||
uses: anchore/[email protected] | ||
if: always() | ||
with: | ||
image: ${{ env.OPEA_IMAGE_REPO }}opea/${{ matrix.image }}:${{ inputs.tag }} | ||
output-file: ${{ matrix.image }}-sbom-scan.txt | ||
format: 'spdx-json' | ||
|
||
- name: Security Scan Container | ||
uses: aquasecurity/[email protected] | ||
if: always() | ||
with: | ||
image-ref: ${{ env.OPEA_IMAGE_REPO }}opea/${{ matrix.image }}:${{ inputs.tag }} | ||
output: ${{ matrix.image }}-trivy-scan.txt | ||
|
@@ -80,6 +82,7 @@ jobs: | |
run: docker rmi -f ${OPEA_IMAGE_REPO}opea/${{ matrix.image }}:${{ inputs.tag }} | ||
|
||
- uses: actions/[email protected] | ||
if: always() | ||
with: | ||
name: ${{ matrix.image }}-scan | ||
path: ${{ matrix.image }}-*-scan.txt | ||
|
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
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,54 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Weekly update base images and 3rd party images | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
freeze-images: | ||
runs-on: ubuntu-latest | ||
env: | ||
USER_NAME: "NeuralChatBot" | ||
USER_EMAIL: "[email protected]" | ||
BRANCH_NAME: "update_images_tag" | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: "main" | ||
|
||
- name: Install skopeo | ||
run: | | ||
sudo apt update | ||
sudo apt -y install skopeo | ||
- name: Set up Git | ||
run: | | ||
git config --global user.name ${{ env.USER_NAME }} | ||
git config --global user.email ${{ env.USER_EMAIL }} | ||
git remote set-url origin https://${{ env.USER_NAME }}:"${{ secrets.ACTION_TOKEN }}"@github.com/opea-project/GenAIExamples.git | ||
git checkout -b ${{ env.BRANCH_NAME }} | ||
- name: Run script | ||
run: | | ||
bash .github/workflows/scripts/update_images_tag.sh | ||
- name: Commit changes | ||
run: | | ||
git add . | ||
git commit -s -m "Update third party images tag" | ||
git push --set-upstream origin update_images_tag | ||
- name: create pull request | ||
run: gh pr create -B main -H ${{ env.BRANCH_NAME }} --title 'Update ghcr.io/huggingface/text-generation-inference image tag' --body 'Created by Github action' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }} |
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
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,7 +1,7 @@ | ||
CHAT_BASE_URL = 'http://backend_address:8888/v1/chatqna' | ||
CHAT_BASE_URL = '/v1/chatqna' | ||
|
||
UPLOAD_FILE_BASE_URL = 'http://backend_address:6007/v1/dataprep' | ||
UPLOAD_FILE_BASE_URL = '/v1/dataprep' | ||
|
||
GET_FILE = 'http://backend_address:6007/v1/dataprep/get_file' | ||
GET_FILE = '/v1/dataprep/get_file' | ||
|
||
DELETE_FILE = 'http://backend_address:6007/v1/dataprep/delete_file' | ||
DELETE_FILE = '/v1/dataprep/delete_file' |
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
Oops, something went wrong.