diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 325ba2e..5f37e5b 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -4,7 +4,7 @@ on: [push] jobs: Explore-Gitea-Actions: - runs-on: ubuntu-latest + runs-on: local-runner steps: - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" diff --git a/Makefile b/Makefile index 73962ba..f95aa3b 100644 --- a/Makefile +++ b/Makefile @@ -11,32 +11,31 @@ SERVICE=crawler VERSION=0.0.0_1 # can be docker or podman or whatever CONTAINERS=podman +COMPOSE=$(CONTAINERS)-compose .phony: all clean build test clean-image build-image build-image-debug run-image run-image-debug run-local build-image: clean - @$(CONTAINERS)-compose -f ./docker-compose.yaml build + @$(CONTAINERS) compose -f ./docker-compose.yaml build run-image: build-image - @$(CONTAINERS)-compose -f docker-compose.yaml up + @$(CONTAINERS) compose -f docker-compose.yaml up build-image-debug: clean - @$(CONTAINERS)-compose -f docker-compose-debug.yaml build + @$(CONTAINERS) compose -f docker-compose-debug.yaml build run-image-debug: build-image-debug - @$(CONTAINERS)-compose -f docker-compose-debug.yaml up + @$(CONTAINERS) compose -f docker-compose-debug.yaml up run-local:clean build - mkdir db @bin/$(SERVICE)-$(OS)-$(ARCH)-$(VERSION) build: - @go build -o ./bin/$(SERVICE)-$(OS)-$(ARCH)-$(VERSION) ./ + @go build -o ./bin/$(SERVICE)-$(OS)-$(ARCH)-$(VERSION) ./cmd/crawler/ test: @go -count=1 test ./... clean: - @rm -rf ./bin ./db + @rm -rf ./bin clean-image: - @$(CONTAINERS) system prune -f