Skip to content

Commit 230a086

Browse files
Merge branch 'main' into prebuild
2 parents 5aeb649 + 8ab1507 commit 230a086

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,14 @@ jobs:
8181
user_name: github-actions[bot]
8282
user_email: 41898282+github-actions[bot]@users.noreply.github.com
8383
cname: docs.defang.io
84+
85+
86+
- name: Notify Slack of Action Failures
87+
uses: ravsamhq/[email protected]
88+
if: ${{ always() && github.ref_name == 'main' }}
89+
with:
90+
status: ${{ job.status }}
91+
notify_when: "failure"
92+
notification_title: "{workflow} is failing"
93+
env:
94+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFIER_WEBHOOK_URL }}

docs/concepts/projects.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: Projects
3+
description: A _project_ refers to a cohesive collection of services which are defined and managed using a `compose.yml` file.
4+
sidebar_position: 200
5+
---
6+
7+
# Projects
8+
9+
A _project_ refers to a cohesive collection of services which are defined and managed using a `compose.yaml` file.
10+
11+
## Project Names
12+
13+
The _project name_ can be defined in the compose file with [the `name` property](https://docs.docker.com/compose/compose-file/04-version-and-name/#name-top-level-element), otherwise the base name of the project directory will be used.
14+
15+
The project name may then be used when performing project-wide operations such as listing services, tailing logs, or deprovisioning. For example:
16+
```
17+
defang services --project-name <project-name>
18+
defang tail --project-name <project-name>
19+
defang compose down --project-name <project-name>
20+
```
21+
22+
By default `defang` will use the project name from the `compose.yaml` file in the working directory. The [`--project-name` CLI flag](/docs/cli/defang) may be used when running `defang` from outside the working directory.

0 commit comments

Comments
 (0)