Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.2.5. rename to lol-serverless #4

Merged
merged 30 commits into from
Jun 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
b23315e
[ci] fix ghcr image building
fuxiaohei May 23, 2023
dd47c52
[ci] add moni-web ghcr
fuxiaohei May 23, 2023
b037fe0
[rpc] continue deployment api
fuxiaohei May 24, 2023
c4c6d09
[runtime] add http server
fuxiaohei May 24, 2023
835a7aa
main: update envconfig, add local storage
fuxiaohei May 25, 2023
7280f45
ci: update moni-runtime image
fuxiaohei May 25, 2023
f732147
use rustls not native-tls
fuxiaohei May 25, 2023
807fb42
rpc: update promote deployment method
fuxiaohei May 26, 2023
98dfe2c
runtime: update worker
fuxiaohei May 26, 2023
d2dd8e2
update ghcr actions
fuxiaohei May 26, 2023
b13b719
actions: update docker base image
fuxiaohei May 26, 2023
b486e54
runtime: update server
fuxiaohei May 27, 2023
2fd7c84
feat: update logs, update moni-web ghcr
fuxiaohei May 29, 2023
b557381
web: add signup page
fuxiaohei May 29, 2023
162de1f
web: update localStorage methods
fuxiaohei May 29, 2023
f1afc55
wit: use new wit-v2 to define http service
fuxiaohei May 30, 2023
391fc92
runtime: update wit
fuxiaohei May 30, 2023
e08fe64
update all wit-update
fuxiaohei May 30, 2023
36ab16a
Merge pull request #3 from fuxiaohei/feat/wit-update
fuxiaohei May 30, 2023
9a91b38
web: update project page
fuxiaohei May 30, 2023
128261d
web: update project page
fuxiaohei May 30, 2023
d98d34c
web: update project overview and settings and deployments page
fuxiaohei Jun 1, 2023
52ebf3a
web: update authContext
fuxiaohei Jun 2, 2023
ff6beba
web: update project deployment page
fuxiaohei Jun 4, 2023
eede456
web: update project deployment card page
fuxiaohei Jun 5, 2023
6ebd646
deploy: update local region
fuxiaohei Jun 6, 2023
1946436
deploy: finish publishing deployment in traefik config
fuxiaohei Jun 7, 2023
162d132
deps: update wasmtime, update github actions
fuxiaohei Jun 7, 2023
f4e9ce7
refactor: rename moni-serverless to lol-serverless
fuxiaohei Jun 8, 2023
23f2ef0
refactor: update all moni to lol word
fuxiaohei Jun 8, 2023
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
39 changes: 32 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "moni-serverless"
prefix-key: "lol-server"
- name: Update local toolchain
run: |
rustup update stable
Expand All @@ -40,13 +40,38 @@ jobs:
- name: Build all
run: |
cargo build --release
cargo build --release -p moni-cli
cargo build --release -p moni-runtime
cargo build --release -p lol-cli
cargo build --release -p lol-runtime
- name: Upload binaries
uses: actions/upload-artifact@v3
with:
name: moni-binary
name: lol-binary
path: |
target/release/moni-cli
target/release/moni-serverless
target/release/moni-runtime
target/release/lol-cli
target/release/lol-server
target/release/lol-runtime

test-wit-v2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "test-wit-v2"
- name: Update local toolchain
run: |
rustup update stable
rustup target add wasm32-wasi
- name: Install protobuf
run: |
sudo apt update
sudo apt install -y protobuf-compiler libprotobuf-dev
- name: Toolchain info
run: |
cargo --version --verbose
rustc --version
cargo clippy --version
protoc --version
- name: Run test-wit-v2
run: |
make test-wit-v2
81 changes: 72 additions & 9 deletions .github/workflows/ghcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,82 @@ on:
branches:
- main
- v*
paths:
- "src/**"
- "deploy/**"

tags: ["v*"]
env:
CARGO_TERM_COLOR: always
concurrency:
group: dockerize-${{ github.ref }}
cancel-in-progress: true

jobs:
dockerize:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- dockerfile: ./deploy/lol-server.Dockerfile
image: ghcr.io/${{ github.repository_owner }}/lol-server
- dockerfile: ./deploy/lol-runtime.Dockerfile
image: ghcr.io/${{ github.repository_owner }}/lol-runtime
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "lol-image"
- name: Update local toolchain
run: |
rustup update stable
- name: Install protobuf
run: |
sudo apt update
sudo apt install -y protobuf-compiler libprotobuf-dev
- name: Toolchain info
run: |
cargo --version --verbose
rustc --version
protoc --version
- name: Build all
run: |
cargo build --release
cargo build --release -p lol-runtime
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ matrix.image }}
tags: |
type=raw,value=latest,enable=true
type=sha,enable=true,format=short
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Github Container Hub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
file: ${{ matrix.dockerfile }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64
webpage:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- dockerfile: ./deploy/lol-web.Dockerfile
image: ghcr.io/${{ github.repository_owner }}/lol-web
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -24,9 +89,7 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/${{ github.repository_owner }}/moni-serverless
# https://github.com/docker/metadata-action#typesemver
images: ${{ matrix.image }}
tags: |
type=raw,value=latest,enable=true
type=sha,enable=true,format=short
Expand All @@ -44,8 +107,8 @@ jobs:
uses: docker/build-push-action@v3
with:
context: .
file: ./deploy/moni-serverless.Dockerfile
file: ${{ matrix.dockerfile }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64
platforms: linux/amd64
Loading