ADD make build step
This commit is contained in:
parent
c610ac5e15
commit
855a347eac
@ -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:
|
||||
|
||||
2
Makefile
2
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user