Skip to content

Commit

Permalink
Merge pull request #5 from amnezia-vpn/fix_4
Browse files Browse the repository at this point in the history
fix issue #4
  • Loading branch information
shipilovds authored Jul 16, 2024
2 parents 626f7f3 + d507423 commit dddd4d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: build docker docker_build docker_retag docker_login docker_push

VERSION := 1.0.0
VERSION := 1.0.1
PROJECT_NAME ?= amneziawg-exporter
DOCKER_BUILDKIT ?= 1
DOCKER_REGISTRY ?= ghcr.io
Expand All @@ -21,15 +21,15 @@ endif
build: $(PROJECT_NAME)

$(PROJECT_NAME):
docker build . -t $(PROJECT_NAME)-builder --target builder --build-arg VERSION=$(VERSION)
#docker build . -t $(PROJECT_NAME)-builder --target builder
$(eval _CONTANER_ID := $(shell docker create $(PROJECT_NAME)-builder))
docker cp $(_CONTANER_ID):/exporter/dist/$(PROJECT_NAME) .
docker rm $(_CONTANER_ID)

docker: $(DOCKER_TARGETS)

docker_build:
docker build -t $(DOCKER_IMAGE):$(DOCKER_TAG) --target exporter .
docker build . -t $(DOCKER_IMAGE):$(DOCKER_TAG) --target exporter --build-arg VERSION=$(VERSION)

docker_retag:
docker tag $(DOCKER_IMAGE):$(DOCKER_TAG) $(DOCKER_IMAGE):latest
Expand Down

0 comments on commit dddd4d6

Please sign in to comment.