Replaced .github workflow with gitea workflow
Some checks failed
Build & test / build (push) Failing after 5s
Some checks failed
Build & test / build (push) Failing after 5s
This commit is contained in:
18
.gitea/workflows/build.yaml
Normal file
18
.gitea/workflows/build.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
name: Build & test
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
16
.gitea/workflows/deploy.yml
Normal file
16
.gitea/workflows/deploy.yml
Normal file
@ -0,0 +1,16 @@
|
||||
name: Deploy image to server, build and run
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: Build and run
|
||||
runs-on: host
|
||||
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v4
|
||||
- name: Run
|
||||
run: docker compose up -d --build
|
Reference in New Issue
Block a user