From d75a0f1c6c67f8b8d83d82c2f055d1d0e9d7e7bf Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Fri, 10 May 2024 12:12:42 +0300 Subject: [PATCH] unhardcode image name --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4a64f9d..cbd3e84 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,6 @@ ROOT_DIR=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) BIN=$(ROOT_DIR)/build/vegapokerbot GO_VERSION=$(shell go version | sed -e 's/go version //') BIN_DIR=$(ROOT_DIR)/build -APP_IMAGE=gitea.neur0tx.site/neur0toxine/vegapokerbot:latest build: deps fmt @echo "> building with ${GO_VERSION}" @@ -13,10 +12,10 @@ build: deps fmt @echo $(BIN) docker: - @docker buildx build --platform linux/amd64 --tag ${APP_IMAGE} --file Dockerfile . + @docker buildx build --platform linux/amd64 --tag $CI_APP_IMAGE --file Dockerfile . docker_release: - @docker buildx build --push --platform linux/amd64 --tag ${APP_IMAGE} --file Dockerfile . + @docker buildx build --push --platform linux/amd64 --tag $CI_APP_IMAGE --file Dockerfile . run: @${BIN} run