diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4883edc..928c2d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ env: jobs: build: - runs-on: self-hosted + runs-on: ubuntu-latest permissions: contents: read packages: write diff --git a/Makefile b/Makefile index 4bf02b8..5c609be 100644 --- a/Makefile +++ b/Makefile @@ -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