Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5 from RunbookSolutions/staging
Browse files Browse the repository at this point in the history
Binary Release
  • Loading branch information
sniper7kills authored Nov 27, 2023
2 parents 2f99aa2 + 7c468f3 commit 93743da
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 1 deletion.
58 changes: 58 additions & 0 deletions .github/workflows/release_created.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,61 @@ jobs:
with:
push: true
tags: runbooksolutions/agent:latest, runbooksolutions/agent:${{ github.event.release.tag_name }}
pyinstaller-build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-latest
output: RBSAgent.exe
- os: ubuntu-latest
output: RBSAgent
- os: macos-latest
output: RBSAgent.app
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build and Publish Executable
uses: sayyid5416/pyinstaller@v1
with:
python_ver: '3.9' # Adjust the Python version as needed
spec: 'app.py' # Adjust the path to your .spec or .py file
requirements: 'requirements.txt' # Adjust the path to your requirements.txt file
upload_exe_with_name: ${{matrix.output}} # Adjust the desired artifact name
options: --onefile, --name "RBSAgent", --windowed
upload-release-assets:
runs-on: ubuntu-latest
needs: [pyinstaller-build]
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/download-artifact@v3
with:
path: ./dist
- name: Upload Release Asset Windows
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./dist
asset_name: RBSAgent.exe
asset_content_type: application/x-executable
- name: Upload Release Asset Linux
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./dist
asset_name: RBSAgent
asset_content_type: application/x-executable
- name: Upload Release Asset Linux
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./dist
asset_name: RBSAgent
asset_content_type: application/x-executable
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ run
OLD
hosts
test.py
__pycache__
__pycache__
app.spec
build
dist
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ For those implementing a custom backend for the Agent, it's crucial to provide t

Understanding these API requests empowers users to integrate the RunbookSolution Agent seamlessly into their infrastructure or develop custom functionalities, enhancing the overall capabilities of the system.

For additional information about the expected responses refer to the [Expected Server Responses](docs/Responses.md) page.

> Note: A Proof-of-Concept backend is available in the [agent_backend](https://github.com/RunbookSolutions/agent_backend) repository.
## Additional Notes

### Creating a Keytab File
Expand Down

0 comments on commit 93743da

Please sign in to comment.