Skip to content

Commit 1597737

Browse files
committed
Merge branch 'main' of github.com:DefangLabs/defang
2 parents 8493cec + ec1fa74 commit 1597737

File tree

127 files changed

+5300
-2227
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+5300
-2227
lines changed

.github/workflows/go.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -149,24 +149,24 @@ jobs:
149149
run: go mod download
150150
working-directory: src
151151

152-
- name: Run GoReleaser (Linux)
152+
- name: Install GoReleaser Pro
153153
uses: goreleaser/goreleaser-action@v6
154154
with:
155-
distribution: goreleaser-pro # either 'goreleaser' (default) or 'goreleaser-pro'
156-
# version: latest
157-
args: release --split ${{ !startsWith(github.ref, 'refs/tags/v') && '--snapshot' || '' }} ${{ github.event_name == 'schedule' && '--nightly' || ''}}
158-
workdir: src
155+
distribution: goreleaser-pro
156+
install-only: true
157+
env:
158+
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
159+
160+
- name: Run GoReleaser (Linux)
161+
run: goreleaser release --split ${{ !startsWith(github.ref, 'refs/tags/v') && '--snapshot' || '' }} ${{ github.event_name == 'schedule' && '--nightly' || ''}}
162+
working-directory: src
159163
env:
160164
GGOOS: linux
161165
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
162166

163167
- name: Run GoReleaser (Windows)
164-
uses: goreleaser/goreleaser-action@v6
165-
with:
166-
distribution: goreleaser-pro # either 'goreleaser' (default) or 'goreleaser-pro'
167-
# version: latest
168-
args: release --split ${{ !startsWith(github.ref, 'refs/tags/v') && '--snapshot' || '' }} ${{ github.event_name == 'schedule' && '--nightly' || ''}}
169-
workdir: src
168+
run: goreleaser release --split ${{ !startsWith(github.ref, 'refs/tags/v') && '--snapshot' || '' }} ${{ github.event_name == 'schedule' && '--nightly' || ''}}
169+
working-directory: src
170170
env:
171171
GGOOS: windows
172172
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
@@ -396,10 +396,10 @@ jobs:
396396
if: failure() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
397397
needs: [go-release, post-release, nix-shell-test, push-docker]
398398
steps:
399-
- name: Slack Notification
400-
uses: rtCamp/action-slack-notify@v2
401-
env:
402-
MSG_MINIMAL: actions url
403-
SLACK_COLOR: ${{ job.status }}
404-
SLACK_TITLE: Defang CLI workflow failed
405-
SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFIER_WEBHOOK_URL }}
399+
- name: Slack Notification
400+
uses: rtCamp/action-slack-notify@v2
401+
env:
402+
MSG_MINIMAL: actions url
403+
SLACK_COLOR: error
404+
SLACK_TITLE: Defang CLI workflow failed
405+
SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFIER_WEBHOOK_URL }}

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/CODEOWNERS

CODEOWNERS

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# Code owners automatically determined from commit history
2-
# Patterns match files or directories followed by one or more owners.
3-
# Owners here correspond to frequent contributors in the git history.
4-
51
# Default owners for everything
62
* @nullfunc
73

@@ -13,4 +9,3 @@
139

1410
# Packaging with Nix
1511
/pkgs/defang/** @lionello
16-

Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,17 @@ pre-commit:
1010
@if git diff --cached --name-only | grep -q '^src/'; then make -C src lint; fi
1111

1212
.PHONY: pre-push
13-
pre-push:
13+
pre-push: src/README.md
1414
@make -C src test
1515

1616
setup:
1717
go -C src mod tidy
18+
19+
src/README.md: README.md
20+
@awk '/^## Develop Once\. Deploy Anywhere\./{p=1} (/^## /||/^### /){if(p&&!/^## Develop Once\. Deploy Anywhere\./){exit}} p' README.md > src/README.md; \
21+
awk '/^## Defang CLI/{p=1} (/^## /||/^### /){if(p&&!/^## Defang CLI/){exit}} p' README.md >> src/README.md; \
22+
awk '/^## Getting started/{p=1} (/^## /||/^### /){if(p&&!/^## Getting started/){exit}} p' README.md >> src/README.md; \
23+
awk '/^## Support/{p=1} (/^## /||/^### /){if(p&&!/^## Support/){exit}} p' README.md >> src/README.md; \
24+
awk '/^## Environment Variables/{p=1} (/^## /||/^### /){if(p&&!/^## Environment Variables/){exit}} p' README.md >> src/README.md; \
25+
@echo 'src/README.md was updated because root README.md changed. Please add src/README.md to your commit.';
26+
@false

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
![Discord](https://img.shields.io/discord/1233224785450897561)
33
![GitHub Release](https://img.shields.io/github/v/release/DefangLabs/defang)
44

5-
# ![Defang](https://raw.githubusercontent.com/DefangLabs/defang-assets/main/Logos/Element_Wordmark_Slogan/JPG/Dark_Colour_Glow.jpg)
5+
### ![Defang](https://raw.githubusercontent.com/DefangLabs/defang-assets/main/Logos/Element_Wordmark_Slogan/JPG/Dark_Colour_Glow.jpg)
66

7-
### Develop Anything. Deploy Anywhere.
7+
## Develop Once. Deploy Anywhere.
88
Take your app from Docker Compose to a secure and scalable deployment on your favorite cloud in minutes.
99

10-
### Defang CLI
10+
## Defang CLI
1111
The Defang Command-Line Interface [(CLI)](https://docs.defang.io/docs/getting-started) is designed for developers who prefer to manage their workflows directly from the terminal. It offers full access to Defang’s capabilities, allowing you to build, test, and deploy applications efficiently to the cloud.
1212

13-
### Defang MCP Server
13+
## Defang MCP Server
1414
The Defang Model Context Protocol [(MCP)](https://docs.defang.io/docs/concepts/mcp) Server is tailored for developers who work primarily within integrated development environments (IDEs). It enables seamless cloud deployment from supported editors such as Cursor, Windsurf, VS Code, VS Code Insiders and Claude delivering a fully integrated experience without leaving your development environment.
1515

1616
## This repo includes:
@@ -78,7 +78,7 @@ Install the Defang CLI from one of the following sources:
7878
7979
## Support
8080
81-
- File any issues [right here on GitHub](https://github.com/DefangLabs/defang/issues)
81+
- File any issues [here](https://github.com/DefangLabs/defang/issues)
8282
8383
## Command completion
8484

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@
1616
devShell =
1717
with pkgs;
1818
mkShell {
19-
buildInputs =
20-
[
21-
buf
22-
crane
23-
git
24-
gnumake
25-
less
26-
gnused # force Linux `sed` everywhere
27-
go_1_23
28-
golangci-lint
29-
goreleaser
30-
nixfmt-rfc-style
31-
nodejs_20 # for Pulumi, must match values in package.json
32-
openssh
33-
pulumi-bin
34-
google-cloud-sdk
35-
vim
36-
];
19+
buildInputs = [
20+
buf
21+
crane
22+
git
23+
gnumake
24+
less
25+
gnused # force Linux `sed` everywhere
26+
go_1_23
27+
golangci-lint
28+
goreleaser
29+
nixfmt-rfc-style
30+
nodejs_24 # for Pulumi, must match values in package.json
31+
openssh
32+
pulumi
33+
pulumiPackages.pulumi-nodejs
34+
google-cloud-sdk
35+
vim
36+
];
3737
};
3838
packages.defang-cli = pkgs.callPackage ./pkgs/defang/cli.nix { };
3939
packages.defang-bin = pkgs.callPackage ./pkgs/defang { };

pkgs/defang/cli.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildGoModule {
77
pname = "defang-cli";
88
version = "git";
99
src = ../../src;
10-
vendorHash = "sha256-VkI1L/yuZKRU8e4TeNZKXmB0hCxI+RvY8iqDlzWrY2s="; # TODO: use fetchFromGitHub
10+
vendorHash = "sha256-SpV97d+MskTCcdsBYJe/afzxzCo5TUtAef9m+lZT6/o="; # TODO: use fetchFromGitHub
1111

1212
subPackages = [ "cmd/cli" ];
1313

pkgs/npm/package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ announce:
150150
enabled: true
151151

152152
nightly:
153-
tag_name: devel
153+
tag_name: nightly
154154
publish_release: true
155155
keep_single_release: true
156156
version_template: "{{ incpatch .Version }}-{{ .ShortCommit }}-nightly"

0 commit comments

Comments
 (0)