ADD make build step

This commit is contained in:
maximo tejeda 2024-07-21 13:31:33 -04:00
parent c610ac5e15
commit 855a347eac
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,6 @@ on:
jobs:
push:
runs-on: ubuntu-latest
steps:
- name: 'checkout'
uses: actions/checkout@v4
@ -21,7 +20,8 @@ jobs:
[registry."192.168.0.151:32000"]
http = true
insecure = true
- name: 'build app binary'
run: make build
- name: 'Build and push Docker image'
uses: docker/build-push-action@v5
with:

View File

@ -26,7 +26,7 @@ build-image: build
# Here we upload it to local
build-test-image:
@$(CONTAINERS) buildx build --platform linux/arm64 --push -t $(REGADDR)/crawler:latest -f Dockerfile.old .
@$(CONTAINERS) buildx build --platform linux/arm64,linux/amd64 --push -t $(REGADDR)/crawler:latest -f Dockerfile.old .
run-image: build-image
@$(CONTAINERS) compose -f docker-compose.yaml up