-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #191 from containers/refactor-chatbot
Refactor chatbot workflow
- Loading branch information
Showing
2 changed files
with
12 additions
and
13 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 |
---|---|---|
|
@@ -14,6 +14,8 @@ on: | |
# - ./recipes/natural_language_processing/chatbot/** | ||
# - .github/workflows/chatbot.yaml | ||
|
||
workflow_dispatch: | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository_owner }}/chatbot | ||
|
@@ -32,7 +34,6 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
# required for multi-arch builds | ||
- name: Install qemu dependency | ||
run: | | ||
sudo apt-get update | ||
|
@@ -53,29 +54,25 @@ jobs: | |
with: | ||
python-version: '3.11' | ||
|
||
- name: Install dependencies | ||
- name: Install Dependencies | ||
working-directory: ./recipes/natural_language_processing/chatbot | ||
run: make install | ||
|
||
- name: Run Functional Tests | ||
working-directory: ./recipes/natural_language_processing/chatbot | ||
run: make functional_tests | ||
|
||
- name: Login to github container registry | ||
if: > | ||
(github.event_name == 'push' || github.event_name == 'schedule') && | ||
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) | ||
uses: docker/[email protected] | ||
- name: Login to Registry | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
uses: redhat-actions/[email protected] | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Push image | ||
- name: Push Image | ||
id: push_image | ||
if: > | ||
(github.event_name == 'push' || github.event_name == 'schedule') && | ||
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
uses: redhat-actions/[email protected] | ||
with: | ||
image: ${{ steps.build_image.outputs.image }} | ||
|
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 |
---|---|---|
|
@@ -14,6 +14,8 @@ on: | |
# - ./model_servers/ | ||
# - .github/workflows/model_servers.yaml | ||
|
||
workflow_dispatch: | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
|
||
|
@@ -72,9 +74,9 @@ jobs: | |
env: | ||
IMAGE_NAME: ${{ matrix.image_name }} | ||
|
||
- name: Login to container registry | ||
- name: Login to Container Registry | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
uses: docker/[email protected] | ||
uses: redhat-actions/[email protected] | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
|