-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update Github action workflows (#29)
* Update Github action workflows * Remove ssh_key
- Loading branch information
1 parent
c6fc99e
commit cc6922e
Showing
8 changed files
with
77 additions
and
71 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 |
---|---|---|
@@ -1,21 +1,14 @@ | ||
name: Build Docker Container | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
workflow_call: | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
lfs: 'true' | ||
ssh-key: ${{ secrets.git_ssh_key }} | ||
- name: Build the Docker image | ||
run: docker build . --file Dockerfile --tag osml-model-runner:$(date +%s) |
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,12 +1,17 @@ | ||
name: Docs | ||
on: [push, pull_request, workflow_dispatch] | ||
name: Generate and Publish Documentation for OSML Model Runner | ||
|
||
on: | ||
workflow_call: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
docs: | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v3 | ||
- name: Install dependencies | ||
run: | | ||
|
@@ -19,7 +24,6 @@ jobs: | |
tox -e docs | ||
- name: Deploy | ||
uses: peaceiris/[email protected] | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
with: | ||
publish_branch: gh-pages | ||
github_token: ${{ secrets.GITHUB_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: "OSML Model Runner Build Workflow" | ||
|
||
on: | ||
pull_request: | ||
branches: ["main", "dev"] | ||
|
||
jobs: | ||
Build_Validate_Tox: | ||
uses: ./.github/workflows/python-tox.yml | ||
secrets: inherit | ||
Build_Docker_Container: | ||
uses: ./.github/workflows/docker-build.yml | ||
secrets: inherit |
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,29 @@ | ||
name: "OSML Model Runner Build and Publish Workflow" | ||
|
||
on: | ||
push: | ||
branches: ["main", "dev"] | ||
|
||
jobs: | ||
Build_Validate_Tox: | ||
uses: ./.github/workflows/python-tox.yml | ||
secrets: inherit | ||
Build_Docker_Container: | ||
uses: ./.github/workflows/docker-build.yml | ||
secrets: inherit | ||
Publish_Python: | ||
needs: [Build_Validate_Tox, Build_Docker_Container] | ||
uses: ./.github/workflows/python-publish.yml | ||
secrets: inherit | ||
Publish_Docker_Github: | ||
needs: [Build_Validate_Tox, Build_Docker_Container] | ||
uses: ./.github/workflows/docker-publish-dockerhub.yml | ||
secrets: inherit | ||
Publish_Docker_Dockerhub: | ||
needs: [Build_Validate_Tox, Build_Docker_Container] | ||
uses: ./.github/workflows/docker-publish-github.yml | ||
secrets: inherit | ||
Publish_Documentation: | ||
needs: [Publish_Python, Publish_Docker_Github, Publish_Docker_Dockerhub] | ||
uses: ./.github/workflows/documentation-publish.yml | ||
secrets: inherit |
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