Skip to content

Commit f0c3152

Browse files
authored
Merge pull request #173 from DefangLabs/172-convert-all-samples-to-use-the-defang-gh-action-from-marketplace
Switch all samples to use the defang gh action
2 parents 85da770 + 42bd6cf commit f0c3152

File tree

51 files changed

+167
-598
lines changed

Some content is hidden

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

51 files changed

+167
-598
lines changed
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]
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]

0 commit comments

Comments
 (0)