updated runner

This commit is contained in:
maximo tejeda 2024-02-07 14:51:02 -04:00
parent 2ac6609550
commit e948409e9d
2 changed files with 8 additions and 9 deletions

View File

@ -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!"

View File

@ -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