Skip to content

Commit

Permalink
Merge pull request #4157 from signalco-io/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
AleksandarDev authored Dec 20, 2023
2 parents 53baed1 + be4e1e9 commit c29650e
Show file tree
Hide file tree
Showing 151 changed files with 4,076 additions and 1,974 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ name: "[Cloud] Preview Deploy"
on:
workflow_call:
inputs:
project:
required: true
type: string
description: "The project to deploy"
baseRef:
required: true
type: string
description: "The base branch to deploy to"

defaults:
run:
working-directory: ./cloud/infrastructure
working-directory: ./infra

jobs:
build-and-preview:
Expand All @@ -24,10 +28,10 @@ jobs:
- name: ✋ Set up mutex
id: mutex-setup
run: |
pushd ../../discrete/Signalco.Discrete.Api.Mutex/node-cli
pushd ../discrete/Signalco.Discrete.Api.Mutex/node-cli
npm install
npm install -g
npx mutex wait signalcocloudpreview
npx mutex wait signalcoinfrapreview${{ inputs.project }}
popd
- name: ✨ Setup DotNet
Expand All @@ -45,7 +49,7 @@ jobs:
with:
node-version: "20.x"
cache: pnpm
cache-dependency-path: ./cloud/infrastructure
cache-dependency-path: ./infra

- name: 📦️ Installing dependencies
run: pnpm i --frozen-lockfile
Expand All @@ -63,12 +67,15 @@ jobs:
env:
BASE_BRANCH: ${{ inputs.baseRef }}

- name: ⚒️ Build Infrastructure
run: pnpm build

- name: ⚡ Preview Deploy Infrastructure
uses: pulumi/actions@v4
with:
command: preview
stack-name: signalco/cloud-primary/${{ steps.extract_branch.outputs.stack }}
work-dir: ./cloud/infrastructure
stack-name: signalco/${{ inputs.project }}/${{ steps.extract_branch.outputs.stack }}
work-dir: ./infra/apps/${{ inputs.project }}
comment-on-pr: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -77,8 +84,8 @@ jobs:
- name: ✋ Release mutex
if: always() && steps.mutex-setup.outcome == 'success'
run: |
pushd ../../discrete/Signalco.Discrete.Api.Mutex/node-cli
pushd ../discrete/Signalco.Discrete.Api.Mutex/node-cli
npm install
npm install -g
npx mutex release signalcocloudpreview
npx mutex release signalcoinfrapreview${{ inputs.project }}
popd
27 changes: 20 additions & 7 deletions .github/workflows/cloud-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ on:
branches: [main, next]
paths:
- "cloud/**"
- "infrastructure/**"
- "infra/**"
- ".github/workflows/cloud-deploy.yml"

env:
DOTNET_VERSION: "7.0.x" # set this to the dotnet version to use

defaults:
run:
working-directory: ./cloud/infrastructure
working-directory: ./infra

jobs:
build-and-deploy:
Expand All @@ -27,7 +27,7 @@ jobs:
- name: ✋ Set up mutex
id: mutex-setup
run: |
pushd ../../discrete/Signalco.Discrete.Api.Mutex/node-cli
pushd ../discrete/Signalco.Discrete.Api.Mutex/node-cli
npm install
npm install -g
npx mutex wait signalcoclouddeploy
Expand All @@ -48,7 +48,7 @@ jobs:
with:
node-version: "20.x"
cache: pnpm
cache-dependency-path: ./cloud/infrastructure
cache-dependency-path: ./infra

- name: 📦️ Installing dependencies
run: pnpm i --frozen-lockfile
Expand All @@ -61,20 +61,33 @@ jobs:
env:
BASE_BRANCH: ${{ github.base_ref }}

- name: ⚡ Deploy Infrastructure
- 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: ./cloud/infrastructure
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
pushd ../discrete/Signalco.Discrete.Api.Mutex/node-cli
npm install
npm install -g
npx mutex release signalcoclouddeploy
Expand Down
26 changes: 19 additions & 7 deletions .github/workflows/web-nextjs_bundle_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,41 @@ name: '[Web] CI'
on:
pull_request:
paths:
- 'web/**'
- 'web/**'
- 'cloud/**'
- 'infra/**'
- '.github/workflows/web-nextjs_bundle_analysis.yml'
- '.github/workflows/nextjs_bundle_analysis_reusable.yml'
- '.github/workflows/cloud-deploy-preview.yml'
- '.github/workflows/cloud-deploy-preview_reusable.yml'
push:
branches:
- main
- next
paths:
- 'web/**'
- 'cloud/**'
- 'infra/**'
- '.github/workflows/web-nextjs_bundle_analysis.yml'
- '.github/workflows/nextjs_bundle_analysis_reusable.yml'
- '.github/workflows/cloud-deploy-preview.yml'
- '.github/workflows/cloud-deploy-preview_reusable.yml'
workflow_dispatch:

jobs:
cloud_preview:
name: "Cloud (preview)"
uses: ./.github/workflows/cloud-deploy-preview.yml
uses: ./.github/workflows/cloud-deploy-preview_reusable.yml
if: success() && github.event_name == 'pull_request'
with:
project: "cloud-primary"
baseRef: ${{ github.base_ref }}
secrets: inherit

uier_infra_preview:
name: "uier infrastructure (preview)"
uses: ./.github/workflows/cloud-deploy-preview_reusable.yml
if: success() && github.event_name == 'pull_request'
with:
project: "uier"
baseRef: ${{ github.base_ref }}
secrets: inherit

Expand All @@ -40,7 +52,7 @@ jobs:
path: 'web/apps/blog'
vercelProjectId: 'prj_VT7qOjkcEvkAsZH7MtSxWcVDWVpr'
secrets: inherit

analyze_app:
name: "App"
uses: ./.github/workflows/nextjs_bundle_analysis_reusable.yml
Expand All @@ -60,7 +72,7 @@ jobs:
path: 'web/apps/brandgrab'
vercelProjectId: 'prj_QHQO9V4WwYqlcpXNufZ4SU3Ryftx'
secrets: inherit

analyze_web:
name: "Web"
uses: ./.github/workflows/nextjs_bundle_analysis_reusable.yml
Expand All @@ -70,7 +82,7 @@ jobs:
path: 'web/apps/web'
vercelProjectId: 'prj_PYE8WwpynTfjD6rVMiCp7sZoCPYw'
secrets: inherit

analyze_slco:
name: "slco"
uses: ./.github/workflows/nextjs_bundle_analysis_reusable.yml
Expand Down
5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/signalco.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/webResources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 39 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,44 @@
<p align="center">
<a href="https://www.signalco.io">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://www.signalco.io/LogotypeDark.png">
<img height="98" width="350" alt="signalco logotype" src="https://www.signalco.io/LogotypeLight.png">
</picture>
</a>
<a href="https://www.signalco.io">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://www.signalco.io/LogotypeDark.png">
<img height="98" width="350" alt="signalco logotype" src="https://www.signalco.io/LogotypeLight.png">
</picture>
</a>
</p>
<h4 align="center">Automate your life.</h4>

<p align="center">
<a href="#getting-started">Getting Started</a> •
<a href="#key-features">Key Features</a> •
<a href="#community">Community</a> •
<a href="#contributing">Contributing</a> •
<a href="#development">Development</a>
<a href="#getting-started">Getting Started</a> •
<a href="#key-features">Key Features</a> •
<a href="#community">Community</a> •
<a href="#contributing">Contributing</a> •
<a href="#related">Related</a> •
<a href="#license">License</a> •
<a href="#sponsors">Sponsors</a>
</p>

## Getting Started

Visit [https://www.signalco.io/learn](https://www.signalco.io/learn) to get started with Signalco.
Visit [www.signalco.io/learn](https://www.signalco.io/learn) to get started with Signalco.

## Key Features

- Minimalistic and Beautiful UI
- Smart home
- Internet Of Things
- Advanced automations
- Minimalistic and Beautiful overview of all your services and devices
- Advanced automations simplified
- Integrated with many Internet Of Things (IoT) devices
- Integrated with many online services

## Community

_We are setting up community channels for all users... stay tuned._

The Signalco community of developers can be found on [GitHub Discussions](https://github.com/signalco-io/signalco/discussions), where you can ask questions, voice ideas, and share your projects.
The Signalco community of developers can be found
on [GitHub Discussions](https://github.com/signalco-io/signalco/discussions), where you can ask questions, voice ideas,
and share your projects.

Our [Code of Conduct](https://github.com/signalco-io/signalco/blob/main/CODE_OF_CONDUCT.md) applies to all Signalco community channels.
Our [Code of Conduct](https://github.com/signalco-io/signalco/blob/main/CODE_OF_CONDUCT.md) applies to all Signalco
community channels.

## Contributing

Expand All @@ -51,11 +56,24 @@ More info on development can be found in [Development](/DEVELOPMENT.md) document

## License

[GNU General Public License v3.0](LICENSE)
Project is licensed under [GNU General Public License v3.0](LICENSE). See [www.signalco.io/oss](https://www.signalco.io/oss) for more info.

Some parts of this projects are licensed under (MIT license). These licenses are specified in project/package files and are not included in root license specified here [GNU General Public License v3.0](LICENSE).

Other parts, that don't specify license, are licensed under [GNU General Public License v3.0](LICENSE).

[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fsignalco-io%2Fsignalco.svg?type=large&issueType=license)](https://app.fossa.com/projects/git%2Bgithub.com%2Fsignalco-io%2Fsignalco?ref=badge_large&issueType=license)

## Sponsors ✨

Many thanks to our sponsors!

![Microsoft for Startups](/docs/ms_startups.png)
![JetBrains](/docs/jb_beam.png)
### Current sponsors

No current sponsors. [Become a sponsor](https://www.signalco.io/sponsor) and get your logo here with a link to your
site.

#### Previous sponsors that helped us get started

![Microsoft for Startups](/docs/sponsors/ms_startups.png)
![JetBrains](/docs/sponsors/jb_beam.png)
7 changes: 7 additions & 0 deletions THIRD_PARTY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- [FOSSA](https://fossa.com/) - FOSSA helps you manage your open source dependencies so you can ship more secure and robust code faster.
- [Vercel](https://vercel.com/) - Vercel combines the best developer experience with an obsessive focus on end-user performance. Our platform enables frontend teams to do their best work.
- [GitHub](https://github.com/) - GitHub is where over 65 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and features, power your CI/CD and DevOps workflows, and secure code before you commit it.
- [Microsoft Azure](https://azure.microsoft.com/) - Build, run and manage applications across multiple clouds, on-premises and at the edge, with the tools and frameworks of your choice.
- [PlanetScale](https://planetscale.com/) - PlanetScale is a database-as-a-service built on Vitess, the popular open source sharding system for MySQL. Our platform makes it easy to build, scale, and manage modern applications on MySQL.

TODO: Populate list with all third party services used by Signalco.
Loading

8 comments on commit c29650e

@vercel
Copy link

@vercel vercel bot commented on c29650e Dec 20, 2023

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

@vercel
Copy link

@vercel vercel bot commented on c29650e Dec 20, 2023

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-git-main-signalco.vercel.app
signalco-slco-signalco.vercel.app
slco.signalco.io
slco.io
signalco-slco.vercel.app

@vercel
Copy link

@vercel vercel bot commented on c29650e Dec 20, 2023

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

signalco-app.vercel.app
app.signalco.io
signalco-app-git-main-signalco.vercel.app
signalco-app-signalco.vercel.app

@vercel
Copy link

@vercel vercel bot commented on c29650e Dec 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on c29650e Dec 20, 2023

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.vercel.app
signalco-uier-signalco.vercel.app
next.uier.io
signalco-uier-git-main-signalco.vercel.app

@vercel
Copy link

@vercel vercel bot commented on c29650e Dec 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on c29650e Dec 20, 2023

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

@vercel
Copy link

@vercel vercel bot commented on c29650e Dec 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.