Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK Auto Patching #1126

Merged
merged 4 commits into from
Jul 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions .github/workflows/security-patching.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,29 @@ jobs:
with:
python-version: '3.9'

- name: Checkout action repository to get records
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
repository: RasaHQ/get-release-records-from-datocms-gha
ref: main
token: ${{ secrets.CLONE_CMS_CHECKER }}
path: .github/get-release-records-from-datocms-gha

- name: Run action to get records
uses: ./.github/get-release-records-from-datocms-gha
id: get_branches
with:
dato-cms-api-key: ${{ secrets.DATO_CMS_API_KEY }}
product-name: Rasa Pro
status: active

- name: Fetch all tags
run: git fetch --tags

- name: Run Python script
id: tags
run: |
python scripts/get_tags_from_branch.py '["3.3.x","3.4.x","3.5.x","3.6.x","3.7.x","3.8.x"]' '3.3.x'
python scripts/get_tags_from_branch.py '${{ steps.get_branches.outputs.records }}' '3.7.x'

- name: Show tags
run: |
Expand Down Expand Up @@ -84,13 +100,10 @@ jobs:
run: |
docker build . -t ${{env.RELEASE_REGISTRY_SDK}}/rasa-sdk:${{ matrix.supported_versions }}-latest --build-arg VERSION_NUMBER=${{ matrix.supported_versions }} -f Dockerfile.patch

- name: Fail pushing the patch if the build is not a success
if: steps.build.outcome == 'failure'
run: exit 1

# Push patched images to the release registry with patched tag.
- name: Push image to release registry
id: push
continue-on-error: true
run: |
docker push ${{env.RELEASE_REGISTRY_SDK}}/rasa-sdk:${{ matrix.supported_versions }}-latest

Expand Down
Loading