Skip to content

Commit c7e1561

Browse files
committed
Merge branch 'main' into 82-javalin-sample
2 parents 7049af0 + ac957c2 commit c7e1561

File tree

72 files changed

+1371
-604
lines changed

Some content is hidden

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

72 files changed

+1371
-604
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
Samples to show you how to develop, deploy, and debug cloud applications with Defang.
44

55
Browse through the [./samples](./samples) directory, or search and browse in the [docs](https://docs.defang.io/docs/samples).
6+
7+
## Adding Samples
8+
9+
To start working on a new sample, run `. ./scripts/new-sample.sh` from the root of the repository. This will create a new sample directory, with some basic scaffolding to get you started. Look for `#REMOVE_ME_AFTER_EDITING` in your new project to look for things that you should probably be changing/checking per sample. Feel free to remove files, like `compose.dev.yaml` if they aren't necessary for your sample.
Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
name: deploy
1+
name: Deploy
22

33
on:
44
push:
55
branches:
66
- main
7-
- pr-test/*
8-
9-
concurrency:
10-
group: deploy
11-
cancel-in-progress: false
127

138
jobs:
149
deploy:
@@ -21,11 +16,5 @@ jobs:
2116
- name: Checkout Repo
2217
uses: actions/checkout@v4
2318

24-
- name: Install defang
25-
run: . <(curl -Ls https://s.defang.io/install)
26-
27-
- name: Login to Defang
28-
run: defang login
29-
3019
- name: Deploy
31-
run: defang compose up -v --detach
20+
uses: DefangLabs/defang[email protected]
Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
name: deploy
1+
name: Deploy
22

33
on:
44
push:
55
branches:
66
- main
7-
- pr-test/*
8-
9-
concurrency:
10-
group: deploy
11-
cancel-in-progress: false
127

138
jobs:
149
deploy:
@@ -21,11 +16,5 @@ jobs:
2116
- name: Checkout Repo
2217
uses: actions/checkout@v4
2318

24-
- name: Install defang
25-
run: . <(curl -Ls https://s.defang.io/install)
26-
27-
- name: Login to Defang
28-
run: defang login
29-
3019
- name: Deploy
31-
run: defang compose up -v --detach
20+
uses: DefangLabs/defang[email protected]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
14+
15+
steps:
16+
- name: Checkout Repo
17+
uses: actions/checkout@v4
18+
19+
- name: Deploy
20+
uses: DefangLabs/[email protected]
Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
name: deploy
1+
name: Deploy
22

33
on:
44
push:
55
branches:
66
- main
7-
- pr-test/*
8-
9-
concurrency:
10-
group: deploy
11-
cancel-in-progress: false
127

138
jobs:
149
deploy:
@@ -21,11 +16,5 @@ jobs:
2116
- name: Checkout Repo
2217
uses: actions/checkout@v4
2318

24-
- name: Install defang
25-
run: . <(curl -Ls https://s.defang.io/install)
26-
27-
- name: Login to Defang
28-
run: defang login
29-
3019
- name: Deploy
31-
run: defang compose up -v --detach
20+
uses: DefangLabs/defang[email protected]
Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
name: deploy
1+
name: Deploy
22

33
on:
44
push:
55
branches:
66
- main
7-
- pr-test/*
8-
9-
concurrency:
10-
group: deploy
11-
cancel-in-progress: false
127

138
jobs:
149
deploy:
@@ -21,11 +16,5 @@ jobs:
2116
- name: Checkout Repo
2217
uses: actions/checkout@v4
2318

24-
- name: Install defang
25-
run: . <(curl -Ls https://s.defang.io/install)
26-
27-
- name: Login to Defang
28-
run: defang login
29-
3019
- name: Deploy
31-
run: defang compose up -v --detach
20+
uses: DefangLabs/defang[email protected]
Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
name: deploy
1+
name: Deploy
22

33
on:
44
push:
55
branches:
66
- main
7-
- pr-test/*
8-
9-
concurrency:
10-
group: deploy
11-
cancel-in-progress: false
127

138
jobs:
149
deploy:
@@ -21,11 +16,5 @@ jobs:
2116
- name: Checkout Repo
2217
uses: actions/checkout@v4
2318

24-
- name: Install defang
25-
run: . <(curl -Ls https://s.defang.io/install)
26-
27-
- name: Login to Defang
28-
run: defang login
29-
3019
- name: Deploy
31-
run: defang compose up -v --detach
20+
uses: DefangLabs/defang[email protected]
Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
name: deploy
1+
name: Deploy
22

33
on:
44
push:
55
branches:
66
- main
7-
- pr-test/*
8-
9-
concurrency:
10-
group: deploy
11-
cancel-in-progress: false
127

138
jobs:
149
deploy:
@@ -21,11 +16,5 @@ jobs:
2116
- name: Checkout Repo
2217
uses: actions/checkout@v4
2318

24-
- name: Install defang
25-
run: . <(curl -Ls https://s.defang.io/install)
26-
27-
- name: Login to Defang
28-
run: defang login
29-
3019
- name: Deploy
31-
run: defang compose up -v --detach
20+
uses: DefangLabs/defang[email protected]
Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
name: deploy
1+
name: Deploy
22

33
on:
44
push:
55
branches:
66
- main
7-
- pr-test/*
8-
9-
concurrency:
10-
group: deploy
11-
cancel-in-progress: false
127

138
jobs:
149
deploy:
@@ -21,11 +16,5 @@ jobs:
2116
- name: Checkout Repo
2217
uses: actions/checkout@v4
2318

24-
- name: Install defang
25-
run: . <(curl -Ls https://s.defang.io/install)
26-
27-
- name: Login to Defang
28-
run: defang login
29-
3019
- name: Deploy
31-
run: defang compose up -v --detach
20+
uses: DefangLabs/defang[email protected]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
14+
15+
steps:
16+
- name: Checkout Repo
17+
uses: actions/checkout@v4
18+
19+
- name: Deploy
20+
uses: DefangLabs/[email protected]

0 commit comments

Comments
 (0)