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

Add other platforms to testing successful launch #19

Merged
merged 2 commits into from
Nov 23, 2023
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
46 changes: 38 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,59 @@ jobs:
- uses: actions/checkout@v3

- uses: ./
id: runs
id: aws_run
# Use repository secrets for sensitive fields
with:
pipeline: hello_world
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
workspace_id: ${{ secrets.AWS_TOWER_WORKSPACE_ID }}
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
compute_env: ${{ secrets.TOWER_COMPUTE_ENV }}
compute_env: ${{ secrets.AWS_TOWER_COMPUTE_ENV }}
run_name: ${{ github.job }}_${{ github.sha }}
workdir: ${{ secrets.AWS_S3_BUCKET }}/work/${{ github.sha }}

- uses: ./
id: azure_run
# Use repository secrets for sensitive fields
with:
pipeline: hello-azure
workspace_id: ${{ secrets.AZURE_TOWER_WORKSPACE_ID }}
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
compute_env: ${{ secrets.AZURE_TOWER_COMPUTE_ENV }}
run_name: ${{ github.job }}_${{ github.sha }}
workdir: ${{ secrets.AZURE_WORK_CONTAINER }}/work/${{ github.sha }}

- uses: ./
id: gcp_run
# Use repository secrets for sensitive fields
with:
pipeline: hello_gcp
workspace_id: ${{ secrets.GCP_TOWER_WORKSPACE_ID }}
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
compute_env: ${{ secrets.GCP_TOWER_COMPUTE_ENV }}
run_name: ${{ github.job }}_${{ github.sha }}
workdir: ${{ secrets.GCP_BUCKET }}/work/${{ github.sha }}

- name: Comment PR
if: github.event_name == 'pull_request'
uses: thollander/actions-comment-pull-request@v2
with:
message: |
### 🚀 Pipeline launched, monitor progress [here](${{ steps.runs.outputs.workflowUrl }}).
### 🚀 Pipelines launched

| Name | Info |
|------|------|
| 🔨 Workflow ID | `${{ steps.runs.outputs.workflowId }}` |
| 🏠 Workspace | `${{ steps.runs.outputs.workspaceRef }}` |
| 🗂️ Workspace ID | `${{ steps.runs.outputs.workspaceId }}` |
| 😎 Workflow URL | ${{ steps.runs.outputs.workflowUrl }} |
| 🔨 AWS Workflow ID | `${{ steps.aws_run.outputs.workflowId }}` |
| 🏠 AWS Workspace | `${{ steps.aws_run.outputs.workspaceRef }}` |
| 🗂️ AWS Workspace ID | `${{ steps.aws_run.outputs.workspaceId }}` |
| 😎 AWS Workflow URL | ${{ steps.aws_run.outputs.workflowUrl }} |
| 🔨 Azure Workflow ID | `${{ steps.azure_run.outputs.workflowId }}` |
| 🏠 Azure Workspace | `${{ steps.azure_run.outputs.workspaceRef }}` |
| 🗂️ Azure Workspace ID | `${{ steps.azure_run.outputs.workspaceId }}` |
| 😎 Azure Workflow URL | ${{ steps.gcp_run.outputs.workflowUrl }} |
| 🔨 GCP Workflow ID | `${{ steps.gcp_run.outputs.workflowId }}` |
| 🏠 GCP Workspace | `${{ steps.gcp_run.outputs.workspaceRef }}` |
| 🗂️ GCP Workspace ID | `${{ steps.gcp_run.outputs.workspaceId }}` |
| 😎 GCP Workflow URL | ${{ steps.gcp_run.outputs.workflowUrl }} |
comment_tag: towerrun

- name: Comment PR
Expand Down