Hello,
I used this and this to create the GitHub action below:
on:
push:
branches:
- main
paths:
- 'actions/**'
jobs:
training-testing:
name: Training and Testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Rasa Train and Test GitHub Action
uses: RasaHQ/rasa-train-test-gha@main
with:
requirements_file: 'actions/requirements-actions.txt'
data_validate: true
rasa_train: true
cross_validation: true
rasa_test: true
test_type: all
publish_summary: true
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload model
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@main
with:
name: model
path: models
build_and_deploy:
name: Build Action Server image and upgrade Rasa X deployment
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- id: action_server
name: Build an action server with custom actions
uses: RasaHQ/action-server-gha@main
with:
actions_directory: 'actions'
requirements_file: 'actions/requirements-actions.txt'
docker_image_name: 'chrisrahme/fyp-chatbot'
docker_registry_login: ${{ secrets.DOCKER_HUB_LOGIN }}
docker_registry_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
docker_image_tag: ${{ github.sha }}
- name: "Upgrade a Rasa X deployment"
run: |
helm upgrade --install --reuse-values \
--set app.name=${{ steps.action_server.outputs.docker_image_name }} \
--set app.tag=${{ steps.action_server.outputs.docker_image_tag }} rasa rasa-x/rasa-x
When I update anything inside the actions
folder and go to the “Actions” tab of my repository, the GitHub Action runs “Training and Testing” and then fails like so when in “Build Action Server Image”:
I’m new to GitHub actions, I don’t know if this error is my fault or not. In any case, is there a way to fix it, and how? I am currently using the docker build
and docker push
commands, but it would be way better to use a GitHub Action.