diff --git a/.gitea/workflows/build-an-push.yaml b/.gitea/workflows/build-an-push.yaml index e490288..1a9b4c6 100644 --- a/.gitea/workflows/build-an-push.yaml +++ b/.gitea/workflows/build-an-push.yaml @@ -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: diff --git a/Makefile b/Makefile index f97c8b6..2a5e187 100644 --- a/Makefile +++ b/Makefile @@ -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