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

View File

@ -26,7 +26,7 @@ build-image: build
# Here we upload it to local # Here we upload it to local
build-test-image: 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 run-image: build-image
@$(CONTAINERS) compose -f docker-compose.yaml up @$(CONTAINERS) compose -f docker-compose.yaml up