mirror of
https://github.com/mpolden/echoip.git
synced 2024-11-10 07:27:22 +01:00
build: Build and publish image once
This commit is contained in:
parent
8374778df8
commit
4024add6e1
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -24,9 +24,5 @@ jobs:
|
||||
run: |
|
||||
echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
|
||||
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
|
||||
run: make docker-pushx
|
||||
|
2
Makefile
2
Makefile
@ -60,7 +60,7 @@ docker-test:
|
||||
docker-push: docker-test docker-login
|
||||
$(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 .
|
||||
|
||||
xinstall:
|
||||
|
Loading…
Reference in New Issue
Block a user