-
-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[blocked on 0.14] ci: add gen deploy (#1067)
* ci: add gen deploy --------- Co-authored-by: Elad Kaplan <[email protected]>
- Loading branch information
1 parent
6114163
commit 0d30d4b
Showing
2 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: "[loco-gen-deploy]" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
env: | ||
RUST_TOOLCHAIN: stable | ||
TOOLCHAIN_PROFILE: minimal | ||
|
||
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 | ||
- name: | ||
run: cargo loco generate deployment --kind docker && docker build -t demo . | ||
working-directory: ./myapp | ||
|
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