Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
Update CI
  • Loading branch information
lucemans committed Dec 4, 2024
1 parent 90429d7 commit be41d4a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,20 @@ jobs:

- name: Start postgres via docker-compose dev
working-directory: ./engine
run: docker compose -f ./compose.yaml up -d
run: docker compose -f ./compose.yaml up postgres -d

- name: Migrate db
working-directory: ./engine
run: cargo sqlx migrate run
run: cargo install sqlx-cli --no-default-features --features native-tls,postgres && sqlx migrate run

- name: Build
working-directory: ./engine
run: cargo build
run: sqlx migrate run

- name: Build docker image using github actions
uses: docker/build-push-action@v5
with:
context: ./engine
file: ./engine/.build/Dockerfile
tags: v3x-property-engine:latest
push: false

0 comments on commit be41d4a

Please sign in to comment.