feat: flatten (de)serialization of custom user claims #108
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "[loco-gen-deploy]" | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
env: | |
RUST_TOOLCHAIN: stable | |
TOOLCHAIN_PROFILE: minimal | |
LOCO_DEV_MODE_PATH: ${{ github.workspace }} | |
jobs: | |
g-deploy-docker: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ env.RUST_TOOLCHAIN }} | |
- name: Setup Rust cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Install seaorm cli | |
run: cargo install sea-orm-cli | |
- name: install 'loco new' | |
run: | | |
cargo install --path ./loco-new | |
- name: create myapp | |
run: | | |
loco new -n myapp --db sqlite --bg async --assets serverside -a | |
working-directory: /tmp | |
- name: generate deployment | |
run: cargo loco generate deployment --kind docker | |
working-directory: /tmp/myapp | |
- name: copy local loco dependency | |
run: | | |
cp -r ${{github.workspace}} /tmp/myapp/loco | |
- name: build deployment | |
run: docker build -t demo . | |
working-directory: /tmp/myapp |