mirror of https://github.com/mpolden/echoip
build: Build and publish image once
This commit is contained in:
parent
8374778df8
commit
4024add6e1
|
@ -24,9 +24,5 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
|
echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
|
||||||
sudo service docker restart
|
sudo service docker restart
|
||||||
- name: build docker image
|
|
||||||
run: make docker-build
|
|
||||||
- name: publish docker image
|
|
||||||
run: make docker-push
|
|
||||||
- name: publish multi-arch docker image
|
- name: publish multi-arch docker image
|
||||||
run: make docker-pushx
|
run: make docker-pushx
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -60,7 +60,7 @@ docker-test:
|
||||||
docker-push: docker-test docker-login
|
docker-push: docker-test docker-login
|
||||||
$(DOCKER) push $(DOCKER_IMAGE)
|
$(DOCKER) push $(DOCKER_IMAGE)
|
||||||
|
|
||||||
docker-pushx: docker-multiarch-builder docker-login
|
docker-pushx: docker-multiarch-builder docker-test docker-login
|
||||||
$(DOCKER) buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t $(DOCKER_IMAGE) --push .
|
$(DOCKER) buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t $(DOCKER_IMAGE) --push .
|
||||||
|
|
||||||
xinstall:
|
xinstall:
|
||||||
|
|
Loading…
Reference in New Issue