Skip to content

Commit

Permalink
fix: Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Frixxie committed Nov 2, 2024
1 parent b8eea99 commit 1cec9f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:

jobs:
build:
runs-on: self-hosted
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
Expand Down
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,21 @@ build:

test: build
docker compose -f docker-compose.yaml up --wait
cargo install cargo-nextest
cd backend && cargo nextest run
cd backend && cargo t
docker compose -f docker-compose.yaml down

docker_login:
docker login ghcr.io -u $(GITHUB_USER) -p $(GITHUB_TOKEN)

backend_container: docker_login
backend_container:
cd backend && docker build -t ghcr.io/$(GITHUB_USER)/$(PROJECT_NAME)_backend:latest .

frontend_container: docker_login
frontend_container:
cd frontend && docker build -t ghcr.io/$(GITHUB_USER)/$(PROJECT_NAME)_frontend:latest .

containers: backend_container frontend_container test
containers: test backend_container frontend_container

publish_containers: containers
publish_containers: docker_login containers
docker push ghcr.io/$(GITHUB_USER)/$(PROJECT_NAME)_backend:latest
docker push ghcr.io/$(GITHUB_USER)/$(PROJECT_NAME)_frontend:latest

Expand Down

0 comments on commit 1cec9f3

Please sign in to comment.