Skip to content

Commit b244cf0

Browse files
authored
chore: templates + workflow runtime (#69)
1 parent a4e5e99 commit b244cf0

File tree

36 files changed

+646
-347
lines changed

36 files changed

+646
-347
lines changed

.github/workflows/release-dev.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@ on:
66
- main
77

88
jobs:
9-
call-function:
10-
name: Call function
9+
run-workflow:
10+
name: Run Workflow
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
1414

1515
- name: Setup Dagger
16-
uses: dagger/dagger-for-github@v7
16+
uses: dagger/dagger-for-github@8.0.0
1717
with:
18+
version: 0.18.9
1819
verb: functions
19-
workdir: ./etc/runner
20+
workdir: ./etc/workflow-runtime
2021

2122
- name: Setup Node.js
2223
uses: actions/setup-node@v4
@@ -26,8 +27,8 @@ jobs:
2627
- name: Install dependencies
2728
run: yarn install
2829

29-
- name: Call script
30-
working-directory: ./etc/scripts/pipelines
30+
- name: Run workflow
31+
working-directory: ./etc/scripts/workflows
3132
run: ./release.ts
3233
env:
3334
MODE: dev

.github/workflows/release-prod.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@ on:
66
- v*.*.*
77

88
jobs:
9-
call-function:
10-
name: Call function
9+
run-workflow:
10+
name: Run Workflow
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
1414

1515
- name: Setup Dagger
16-
uses: dagger/dagger-for-github@v7
16+
uses: dagger/dagger-for-github@8.0.0
1717
with:
18+
version: 0.18.9
1819
verb: functions
19-
workdir: ./etc/runner
20+
workdir: ./etc/workflow-runtime
2021

2122
- name: Setup Node.js
2223
uses: actions/setup-node@v4
@@ -26,8 +27,8 @@ jobs:
2627
- name: Install dependencies
2728
run: yarn install
2829

29-
- name: Call script
30-
working-directory: ./etc/scripts/pipelines
30+
- name: Run workflow
31+
working-directory: ./etc/scripts/workflows
3132
run: ./release.ts
3233
env:
3334
MODE: prod

.github/workflows/release-stg.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@ on:
66
- release-*
77

88
jobs:
9-
call-function:
10-
name: Call function
9+
run-workflow:
10+
name: Run Workflow
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
1414

1515
- name: Setup Dagger
16-
uses: dagger/dagger-for-github@v7
16+
uses: dagger/dagger-for-github@8.0.0
1717
with:
18+
version: 0.18.9
1819
verb: functions
19-
workdir: ./etc/runner
20+
workdir: ./etc/workflow-runtime
2021

2122
- name: Setup Node.js
2223
uses: actions/setup-node@v4
@@ -26,8 +27,8 @@ jobs:
2627
- name: Install dependencies
2728
run: yarn install
2829

29-
- name: Call script
30-
working-directory: ./etc/scripts/pipelines
30+
- name: Run workflow
31+
working-directory: ./etc/scripts/workflows
3132
run: ./release.ts
3233
env:
3334
MODE: stg

.github/workflows/validate-pr.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@ on:
66
- main
77

88
jobs:
9-
call-function:
10-
name: Call function
9+
run-workflow:
10+
name: Run Workflow
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
1414

1515
- name: Setup Dagger
16-
uses: dagger/dagger-for-github@v7
16+
uses: dagger/dagger-for-github@8.0.0
1717
with:
18+
version: 0.18.9
1819
verb: functions
19-
workdir: ./etc/runner
20+
workdir: ./etc/workflow-runtime
2021

2122
- name: Setup Node.js
2223
uses: actions/setup-node@v4
@@ -26,6 +27,6 @@ jobs:
2627
- name: Install dependencies
2728
run: yarn install
2829

29-
- name: Call script
30-
working-directory: ./etc/scripts/pipelines
30+
- name: Run workflow
31+
working-directory: ./etc/scripts/workflows
3132
run: ./validate-pr.ts

.gitignore

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
1-
node_modules/
1+
# General
22
.cache/
3+
.tmp/
4+
*.local.*
5+
6+
# OS
37
.DS_Store
48

5-
# Yarn
9+
# Node.js
10+
node_modules/
11+
12+
## Yarn
613
.yarn/*
714
!.yarn/cache
815
!.yarn/patches
916
!.yarn/plugins
1017
!.yarn/releases
1118
!.yarn/sdks
1219
!.yarn/versions
20+
1321
# moon
1422
.moon/cache
1523
.moon/docker
1624

25+
# Repo specific
1726
public/
18-
1927
target/
20-
2128
dist/

.moon/workspace.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,7 @@ vcs:
2828
# local branch against. For git, this is is typically "master" or "main",
2929
# and must include the remote prefix (before /).
3030
defaultBranch: main
31+
32+
generator:
33+
templates:
34+
- ./etc/templates

.prototools

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
dagger = "^0.15.1"
2-
go = "^1.23.4"
3-
moon = "^1.31.1"
4-
node = "^22.13.0"
5-
yarn = "^4.6.0"
6-
rust = "^1.81.0"
1+
dagger = "^0"
2+
go = "^1"
3+
moon = "^1"
4+
node = "^22"
5+
yarn = "^4"
6+
rust = "^1"
77

88
[plugins]
99
dagger = "source:https://raw.githubusercontent.com/Phault/proto-toml-plugins/main/dagger/plugin.toml"

.yarn/install-state.gz

5 Bytes
Binary file not shown.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[![Release Dev](https://github.com/ndthanhdev/ndthanhdev.github.io/actions/workflows/release-dev.yml/badge.svg)](https://github.com/ndthanhdev/ndthanhdev.github.io/actions/workflows/release-dev.yml)
2+
[![Release Stg](https://github.com/ndthanhdev/ndthanhdev.github.io/actions/workflows/release-stg.yml/badge.svg)](https://github.com/ndthanhdev/ndthanhdev.github.io/actions/workflows/release-stg.yml)
3+
[![Release Prod](https://github.com/ndthanhdev/ndthanhdev.github.io/actions/workflows/release-prod.yml/badge.svg)](https://github.com/ndthanhdev/ndthanhdev.github.io/actions/workflows/release-prod.yml)
4+
15
Welcome to my personal website repository! This repository contains the source code and content for my personal website, where I share posts on tech and life and experiment with various technologies.
26

37
- [Website URL](#website-url)

apps/app/content/posts/personal-website/dagger-io/dagger-io.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ func (m *NdthanhdevGithubIo) Init(ctx context.Context, dir *Directory) *Containe
7070
Container().
7171
From("node:lts").
7272
WithExec([]string{"yarn", "global", "add", "tsx"}).
73-
WithMountedDirectory("/mnt", source).
74-
WithWorkdir("/mnt").
73+
WithMountedDirectory("/workspace", source).
74+
WithWorkdir("/workspace").
7575
WithExec([]string{"yarn", "install", "--immutable"})
7676
}
7777
```

0 commit comments

Comments
 (0)