-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/ai-cfia/github-workflows in…
…to issue-33-create-vercel-deployment-workflow
- Loading branch information
Showing
10 changed files
with
77 additions
and
77 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## Reusable Docker Container Build | ||
|
||
- **Purpose:** Build and push a Docker image to the Google Artifact Registry (GAR). | ||
- **Usage:** Call this workflow and provide the `container-name` and `tag` as inputs. | ||
- **Required Secrets:** | ||
- `GCP_CLOUDRUN_REGION`: Your Google Cloud Run region. | ||
- `AILAB_GAR_JSON_KEY`: JSON key for authenticating with GAR. | ||
- `AILAB_REGISTRY`: Your GAR registry name. | ||
- `REACT_APP_BACKEND_URL`: Backend URL for the React app. |
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,8 @@ | ||
## Reusable Docker Container Deployment to Google Cloud Run | ||
|
||
- **Purpose:** Deploy a Docker container to Google Cloud Run. | ||
- **Usage:** Call this workflow and provide the `container-name` and `tag` as inputs. | ||
- **Required Secrets:** | ||
- `AILAB_GAR_JSON_KEY`: JSON key for authenticating with GAR. | ||
- `GCP_CLOUDRUN_REGION`: Your Google Cloud Run region. | ||
- `AILAB_REGISTRY`: Your GAR registry name. |
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,12 @@ | ||
## Reusable Build and Deploy to GitHub Pages | ||
|
||
- **Purpose:** Build a Node.js project and deploy the static assets to GitHub Pages. | ||
- **Usage:** Call this workflow and provide `node-version`, `publish-dir`, `cache-dependency-path`, `working-dir` (optional, default is root), and `publish-branch` (optional, default is root) as inputs. | ||
- **Required Secrets:** | ||
- `GITHUB_TOKEN`: This token is automatically generated by GitHub to enable push access to the repository. | ||
- **Workflow Steps:** | ||
- **Checkout Repository**: Retrieves the latest code from the specified branch. | ||
- **Setup Node.js Environment**: Configures the Node.js version and sets up caching for npm dependencies. | ||
- **Install Dependencies**: Installs the required npm packages. | ||
- **Build**: Compiles the project into static assets. | ||
- **Deploy to GitHub Pages**: Publishes the static assets to the specified `publish-branch` on GitHub Pages. |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## Reusable Lint and Test Workflow for Node (React) Projects | ||
|
||
- **Purpose:** Lint and test Node.js (React) projects. | ||
- **Usage:** Call this workflow in your Node.js projects. | ||
- **Note:** Ensure that your project has the necessary scripts for linting and testing in the `package.json` file. |
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,8 @@ | ||
## Reusable Lint and Test Workflow for Python Projects | ||
|
||
- **Purpose:** Lint and test Python packages. | ||
- **Usage:** Call this workflow in your Python projects. | ||
- **Required Secrets:** | ||
- `OPENAI_API_KEY`: API key for OpenAI (if utilized in tests). | ||
- `LOUIS_DSN` and `LOUIS_SCHEMA`: Database credentials (if utilized in tests). | ||
- `AZURE_OPENAI_SERVICE`: Azure OpenAI service credentials (if utilized). |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ name: Check Markdown links | |
|
||
on: | ||
workflow_call: | ||
push: | ||
|
||
jobs: | ||
markdown-link-check: | ||
|
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,4 @@ | ||
## Reusable Workflow for Standardization Validation | ||
|
||
- **Purpose:** Validate the organization's standards across projects. | ||
- **Usage:** Call this workflow while making sure the necessary secrets are inherited for successful execution. |
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 was deleted.
Oops, something went wrong.