unhardcode image name
Some checks are pending
continuous-integration/drone/push Build is pending

This commit is contained in:
Pavel 2024-05-10 12:12:42 +03:00
parent 86ba26f559
commit d75a0f1c6c

View File

@ -5,7 +5,6 @@ ROOT_DIR=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
BIN=$(ROOT_DIR)/build/vegapokerbot BIN=$(ROOT_DIR)/build/vegapokerbot
GO_VERSION=$(shell go version | sed -e 's/go version //') GO_VERSION=$(shell go version | sed -e 's/go version //')
BIN_DIR=$(ROOT_DIR)/build BIN_DIR=$(ROOT_DIR)/build
APP_IMAGE=gitea.neur0tx.site/neur0toxine/vegapokerbot:latest
build: deps fmt build: deps fmt
@echo "> building with ${GO_VERSION}" @echo "> building with ${GO_VERSION}"
@ -13,10 +12,10 @@ build: deps fmt
@echo $(BIN) @echo $(BIN)
docker: 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_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: run:
@${BIN} run @${BIN} run