Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ on:
- main

jobs:
call-function:
name: Call function
run-workflow:
name: Run Workflow
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Dagger
uses: dagger/dagger-for-github@v7
uses: dagger/dagger-for-github@8.0.0
with:
version: 0.18.9
verb: functions
workdir: ./etc/runner
workdir: ./etc/workflow-runtime

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -26,8 +27,8 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Call script
working-directory: ./etc/scripts/pipelines
- name: Run workflow
working-directory: ./etc/scripts/workflows
run: ./release.ts
env:
MODE: dev
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/release-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ on:
- v*.*.*

jobs:
call-function:
name: Call function
run-workflow:
name: Run Workflow
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Dagger
uses: dagger/dagger-for-github@v7
uses: dagger/dagger-for-github@8.0.0
with:
version: 0.18.9
verb: functions
workdir: ./etc/runner
workdir: ./etc/workflow-runtime

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -26,8 +27,8 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Call script
working-directory: ./etc/scripts/pipelines
- name: Run workflow
working-directory: ./etc/scripts/workflows
run: ./release.ts
env:
MODE: prod
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/release-stg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ on:
- release-*

jobs:
call-function:
name: Call function
run-workflow:
name: Run Workflow
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Dagger
uses: dagger/dagger-for-github@v7
uses: dagger/dagger-for-github@8.0.0
with:
version: 0.18.9
verb: functions
workdir: ./etc/runner
workdir: ./etc/workflow-runtime

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -26,8 +27,8 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Call script
working-directory: ./etc/scripts/pipelines
- name: Run workflow
working-directory: ./etc/scripts/workflows
run: ./release.ts
env:
MODE: stg
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ on:
- main

jobs:
call-function:
name: Call function
run-workflow:
name: Run Workflow
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Dagger
uses: dagger/dagger-for-github@v7
uses: dagger/dagger-for-github@8.0.0
with:
version: 0.18.9
verb: functions
workdir: ./etc/runner
workdir: ./etc/workflow-runtime

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -26,6 +27,6 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Call script
working-directory: ./etc/scripts/pipelines
- name: Run workflow
working-directory: ./etc/scripts/workflows
run: ./validate-pr.ts
15 changes: 11 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
node_modules/
# General
.cache/
.tmp/
*.local.*

# OS
.DS_Store

# Yarn
# Node.js
node_modules/

## Yarn
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# moon
.moon/cache
.moon/docker

# Repo specific
public/

target/

dist/
4 changes: 4 additions & 0 deletions .moon/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ vcs:
# local branch against. For git, this is is typically "master" or "main",
# and must include the remote prefix (before /).
defaultBranch: main

generator:
templates:
- ./etc/templates
12 changes: 6 additions & 6 deletions .prototools
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dagger = "^0.15.1"
go = "^1.23.4"
moon = "^1.31.1"
node = "^22.13.0"
yarn = "^4.6.0"
rust = "^1.81.0"
dagger = "^0"
go = "^1"
moon = "^1"
node = "^22"
yarn = "^4"
rust = "^1"

[plugins]
dagger = "source:https://raw.githubusercontent.com/Phault/proto-toml-plugins/main/dagger/plugin.toml"
Expand Down
Binary file modified .yarn/install-state.gz
Binary file not shown.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[![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)
[![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)
[![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)

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.

- [Website URL](#website-url)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ func (m *NdthanhdevGithubIo) Init(ctx context.Context, dir *Directory) *Containe
Container().
From("node:lts").
WithExec([]string{"yarn", "global", "add", "tsx"}).
WithMountedDirectory("/mnt", source).
WithWorkdir("/mnt").
WithMountedDirectory("/workspace", source).
WithWorkdir("/workspace").
WithExec([]string{"yarn", "install", "--immutable"})
}
```
Expand Down
6 changes: 3 additions & 3 deletions docs/guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
- `app/`: My personal website.
- `packages/`: Contains all the `packages` that are used in the `apps` or `packages`.
- `etc/`: Contains everything else grouped by `type`.
- `runner/`: Contains `functions` that run an `pipeline` under `etc/scripts/pipelines/` inside `dagger` container.
- `workflow-runtime/`: Provide runtime and utils to run `etc/scripts/workflows/`.
- `scripts/`
- `utils/`: Contains utility modules for reuse in other scripts.
- `actions/`: Contains the main scripts that perform small tasks should be able to run independently. Requires `tsx` to be installed
- `pipelines/`: Contains the main scripts that run a series of `dagger functions`. Requires `dagger` && `tsx` to be installed.
- `actions/`: Contains scripts that perform small tasks should be able to run independently. Requires `tsx` to be installed
- `workflows/`: Contains scripts that run a series of `actions` inside `workflow-runtime`
6 changes: 0 additions & 6 deletions etc/runner/dagger.json

This file was deleted.

32 changes: 0 additions & 32 deletions etc/runner/src/con.go

This file was deleted.

51 changes: 0 additions & 51 deletions etc/runner/src/go.mod

This file was deleted.

Loading