updated runner
This commit is contained in:
parent
2ac6609550
commit
e948409e9d
@ -4,7 +4,7 @@ on: [push]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: local-runner
|
||||||
steps:
|
steps:
|
||||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
- 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!"
|
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||||
|
|||||||
15
Makefile
15
Makefile
@ -11,32 +11,31 @@ SERVICE=crawler
|
|||||||
VERSION=0.0.0_1
|
VERSION=0.0.0_1
|
||||||
# can be docker or podman or whatever
|
# can be docker or podman or whatever
|
||||||
CONTAINERS=podman
|
CONTAINERS=podman
|
||||||
|
COMPOSE=$(CONTAINERS)-compose
|
||||||
.phony: all clean build test clean-image build-image build-image-debug run-image run-image-debug run-local
|
.phony: all clean build test clean-image build-image build-image-debug run-image run-image-debug run-local
|
||||||
|
|
||||||
build-image: clean
|
build-image: clean
|
||||||
@$(CONTAINERS)-compose -f ./docker-compose.yaml build
|
@$(CONTAINERS) compose -f ./docker-compose.yaml build
|
||||||
|
|
||||||
run-image: build-image
|
run-image: build-image
|
||||||
@$(CONTAINERS)-compose -f docker-compose.yaml up
|
@$(CONTAINERS) compose -f docker-compose.yaml up
|
||||||
|
|
||||||
build-image-debug: clean
|
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
|
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
|
run-local:clean build
|
||||||
mkdir db
|
|
||||||
@bin/$(SERVICE)-$(OS)-$(ARCH)-$(VERSION)
|
@bin/$(SERVICE)-$(OS)-$(ARCH)-$(VERSION)
|
||||||
build:
|
build:
|
||||||
@go build -o ./bin/$(SERVICE)-$(OS)-$(ARCH)-$(VERSION) ./
|
@go build -o ./bin/$(SERVICE)-$(OS)-$(ARCH)-$(VERSION) ./cmd/crawler/
|
||||||
test:
|
test:
|
||||||
@go -count=1 test ./...
|
@go -count=1 test ./...
|
||||||
clean:
|
clean:
|
||||||
@rm -rf ./bin ./db
|
@rm -rf ./bin
|
||||||
|
|
||||||
clean-image:
|
clean-image:
|
||||||
|
|
||||||
@$(CONTAINERS) system prune -f
|
@$(CONTAINERS) system prune -f
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user