Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Dec 4, 2024
1 parent 502838b commit c7e3d7a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ jobs:
working-directory: ./engine
run: docker compose -f ./compose.yaml up postgres -d

- name: Setup Env
working-directory: ./engine
run: cp .env.example .env

- name: Get Runner IP
id: get_ip
run: echo "RUNNER_IP=$(hostname -I | awk '{print $1}')" >> $GITHUB_ENV

- name: Migrate db
working-directory: ./engine
run: cargo install sqlx-cli --no-default-features --features native-tls,postgres && sqlx migrate run
Expand All @@ -35,10 +43,6 @@ jobs:
working-directory: ./engine
run: sqlx migrate run

- name: Get Runner IP
id: get_ip
run: echo "RUNNER_IP=$(hostname -I | awk '{print $1}')" >> $GITHUB_ENV

- name: Build docker image using github actions
uses: docker/build-push-action@v5
with:
Expand Down

0 comments on commit c7e3d7a

Please sign in to comment.