Skip to content

Commit

Permalink
makeFIle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharkboy-j committed Jan 4, 2024
1 parent 48940ff commit ddd1690
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
.PHONY: build
build:
go build
docker build -t ghcr.io/rebell81/ddnser:0.2 -t ghcr.io/rebell81/ddnser:latest --platform linux/arm64 --no-cache .
.PHONY: push
push:
docker push ghcr.io/rebell81/ddnser --all-tags

#docker build -t ghcr.io/rebell81/ddnser:0.2 -t ghcr.io/rebell81/ddnser:latest --platform linux/arm64 --no-cache .
docker buildx build --platform linux/arm64/v8,linux/amd64 --push --tag ghcr.io/rebell81/ddnser:latest --tag ghcr.io/rebell81/ddnser:0.2 .
.PHONY: login
login:
docker logout ghcr.io
docker login ghcr.io

.PHONY: build-push
build-push: build push
#docker buildx create --use --platform=linux/arm64,linux/amd64 --name multi-platform-builder
#docker buildx inspect --bootstrap

0 comments on commit ddd1690

Please sign in to comment.