-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4170 from signalco-io/next
Next
- Loading branch information
Showing
20 changed files
with
178 additions
and
227 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,6 +1,6 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
|
||
name: "[Cloud] Deploy" | ||
name: "[Infra] Deploy" | ||
|
||
on: | ||
push: | ||
|
@@ -9,86 +9,23 @@ on: | |
- "cloud/**" | ||
- "infra/**" | ||
- ".github/workflows/cloud-deploy.yml" | ||
|
||
env: | ||
DOTNET_VERSION: "7.0.x" # set this to the dotnet version to use | ||
|
||
defaults: | ||
run: | ||
working-directory: ./infra | ||
- ".github/workflows/infra-deploy_reusable.yml" | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout GitHub Action" | ||
uses: actions/checkout@v4 | ||
|
||
- name: ✋ Set up mutex | ||
id: mutex-setup | ||
run: | | ||
pushd ../discrete/Signalco.Discrete.Api.Mutex/node-cli | ||
npm install | ||
npm install -g | ||
npx mutex wait signalcoclouddeploy | ||
popd | ||
- name: ✨ Setup DotNet ${{ env.DOTNET_VERSION }} Environment | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
||
- name: ✨ Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 'latest' | ||
|
||
- name: ✨ Setup Node LTS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20.x" | ||
cache: pnpm | ||
cache-dependency-path: ./infra | ||
|
||
- name: 📦️ Installing dependencies | ||
run: pnpm i --frozen-lockfile | ||
|
||
- name: 🔎 Determine stack | ||
shell: bash | ||
run: | | ||
[[ $(echo ${GITHUB_REF#refs/heads/}) = "main" ]] && echo "##[set-output name=branch;]production" || echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
id: extract_branch | ||
env: | ||
BASE_BRANCH: ${{ github.base_ref }} | ||
|
||
- name: ⚒️ Build Infrastructure | ||
run: pnpm build | ||
|
||
- name: ⚡ Deploy signalco Infrastructure | ||
uses: pulumi/actions@v4 | ||
with: | ||
command: up | ||
stack-name: signalco/cloud-primary/${{ steps.extract_branch.outputs.branch }} | ||
work-dir: ./infra/apps/cloud-primary | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | ||
|
||
- name: ⚡ Deploy uier Infrastructure | ||
uses: pulumi/actions@v4 | ||
with: | ||
command: up | ||
stack-name: signalco/uier/${{ steps.extract_branch.outputs.branch }} | ||
work-dir: ./infra/apps/uier | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | ||
|
||
- name: ✋ Release mutex | ||
if: always() && steps.mutex-setup.outcome == 'success' | ||
run: | | ||
pushd ../discrete/Signalco.Discrete.Api.Mutex/node-cli | ||
npm install | ||
npm install -g | ||
npx mutex release signalcoclouddeploy | ||
popd | ||
infra_cloud-primary_up: | ||
name: "Cloud Primary infrastructure (deploy)" | ||
uses: ./.github/workflows/infra-deploy_reusable.yml | ||
with: | ||
project: "cloud-primary" | ||
baseRef: ${{ github.ref }} | ||
command: "up" | ||
secrets: inherit | ||
|
||
infra_uier_up: | ||
name: "uier infrastructure (deploy)" | ||
uses: ./.github/workflows/infra-deploy_reusable.yml | ||
with: | ||
project: "uier" | ||
baseRef: ${{ github.ref }} | ||
command: "up" | ||
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
|
||
name: "[Cloud] Preview Deploy" | ||
name: "[Infra] Deploy" | ||
|
||
on: | ||
workflow_call: | ||
|
@@ -13,13 +13,20 @@ on: | |
required: true | ||
type: string | ||
description: "The base branch to deploy to" | ||
command: | ||
required: true | ||
type: string | ||
description: "The Pulumi command to run - preview, up, destroy, etc." | ||
|
||
defaults: | ||
run: | ||
working-directory: ./infra | ||
|
||
env: | ||
DOTNET_VERSION: "7.0.x" # set this to the dotnet version to use | ||
|
||
jobs: | ||
build-and-preview: | ||
infra-build-and-execute: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout GitHub Action" | ||
|
@@ -31,28 +38,28 @@ jobs: | |
pushd ../discrete/Signalco.Discrete.Api.Mutex/node-cli | ||
npm install | ||
npm install -g | ||
npx mutex wait signalcoinfrapreview${{ inputs.project }} | ||
npx mutex wait signalcoinfra${{ inputs.command }}${{ inputs.project }} | ||
popd | ||
- name: ✨ Setup DotNet | ||
- name: ✨ Setup DotNet ${{ env.DOTNET_VERSION }} Environment | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: "7.0.x" | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
||
- name: ✨ Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 'latest' | ||
|
||
- name: ✨ Setup Node LTS | ||
- name: ✨ Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20.x" | ||
cache: pnpm | ||
cache-dependency-path: ./infra | ||
|
||
- name: 📦️ Installing dependencies | ||
run: pnpm i --frozen-lockfile | ||
run: pnpm i --frozen-lockfile --filter=${{ inputs.project }} | ||
|
||
- name: 🔎 Determine stack | ||
shell: bash | ||
|
@@ -68,12 +75,12 @@ jobs: | |
BASE_BRANCH: ${{ inputs.baseRef }} | ||
|
||
- name: ⚒️ Build Infrastructure | ||
run: pnpm build | ||
run: pnpm build --filter=${{ inputs.project }} | ||
|
||
- name: ⚡ Preview Deploy Infrastructure | ||
uses: pulumi/actions@v4 | ||
with: | ||
command: preview | ||
command: ${{ inputs.command }} | ||
stack-name: signalco/${{ inputs.project }}/${{ steps.extract_branch.outputs.stack }} | ||
work-dir: ./infra/apps/${{ inputs.project }} | ||
comment-on-pr: true | ||
|
@@ -87,5 +94,5 @@ jobs: | |
pushd ../discrete/Signalco.Discrete.Api.Mutex/node-cli | ||
npm install | ||
npm install -g | ||
npx mutex release signalcoinfrapreview${{ inputs.project }} | ||
npx mutex release signalcoinfra${{ inputs.command }}${{ inputs.project }} | ||
popd |
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
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,6 +1,8 @@ | ||
config: | ||
cloudflare:apiToken: | ||
secure: AAABAAqPzyAV9mvmavpxCxB+Ws+snM4JK8mNiAxa+WqmzniW5gNmJpHXGgXZI69SkL251Lhhrp43BUrvHnTEbAFf3lG8/Wsl | ||
uier:zoneid: | ||
secure: AAABAJK2ySr7F+7XlKpMjtxnW6fzUm06HdbFbM5lVT6isD2OQ36zJO+sg5NVhGrF+SnbDe4wYL1TIyDsDR7Sxw== | ||
vercel:apiToken: | ||
secure: AAABAA4uxruLwvuYUDigNjy8yKK8Q3fYt/nM8JmX+RWMNsAMCiDNTbw8uFgFetLzaM4ZkQyLh/8= | ||
vercel:team: team_Ade0MlfC3211ml3wYJZ4c9hn |
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,6 +1,8 @@ | ||
config: | ||
cloudflare:apiToken: | ||
secure: AAABACGEfMwr2aNFBpAz+WdsfG/AgG31Ktvpe0KVGFCpoiCN8wjhe7NJYY4NJT3o/M+q8x85EOwn3Q9CfljxdPEUq4SPuXxo | ||
uier:zoneid: | ||
secure: AAABAPxKQi4LwTWTzWHQkIS6gaaasxCftcUlYDqlVjkiaobpZ7v2NpYRpaFjlBjqSX3uRfU145qJ/vp0PFfhYA== | ||
vercel:apiToken: | ||
secure: AAABAIqY6swLmFBuXsBC1nImEqM4nxOHyxnJn61fsVuM5MrM/gif2yN6U8ZkY5f/lIEQB9H/kSM= | ||
vercel:team: team_Ade0MlfC3211ml3wYJZ4c9hn |
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
Oops, something went wrong.
8b0db30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
signalco-slco – ./web/apps/slco
signalco-slco-signalco.vercel.app
signalco-slco-git-main-signalco.vercel.app
slco.io
signalco-slco.vercel.app
slco.signalco.io
8b0db30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
signalco-app – ./web/apps/app
app.signalco.io
signalco-app.vercel.app
signalco-app-signalco.vercel.app
signalco-app-git-main-signalco.vercel.app
8b0db30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
signalco-blog – ./web/apps/blog
signalco-blog-signalco.vercel.app
signalco-blog.vercel.app
blog.signalco.io
signalco-blog-git-main-signalco.vercel.app
8b0db30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
signalco-ui-docs – ./web/apps/ui-docs
signalco-ui-docs-git-main-signalco.vercel.app
signalco-ui-docs.vercel.app
signalco-ui-docs-signalco.vercel.app
ui.signalco.io
8b0db30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
signalco-doprocess – ./web/apps/doprocess
signalco-doprocess-git-main-signalco.vercel.app
signalco-doprocess-signalco.vercel.app
doprocess.app
www.doprocess.app
doprocess.signalco.dev
doprocess.signalco.io
signalco-doprocess.vercel.app
8b0db30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
signalco-uier – ./web/apps/uier
signalco-uier-git-main-signalco.vercel.app
signalco-uier.vercel.app
signalco-uier-signalco.vercel.app
next.uier.io
8b0db30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
signalco-brandgrab – ./web/apps/brandgrab
signalco-brandgrab-signalco.vercel.app
brandgrab.signalco.io
signalco-brandgrab-git-main-signalco.vercel.app
signalco-brandgrab.vercel.app
brandgrab.io
8b0db30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
signalco-web – ./web/apps/web
signalco-web-git-main-signalco.vercel.app
signalco.vercel.app
www.signalco.io
signalco-web-signalco.vercel.app
signalco.io
signalco.dev