This commit is contained in:
2022-10-20 10:39:56 +02:00
parent c37d824191
commit aa722718f7
3 changed files with 53 additions and 58 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -43,18 +43,13 @@ local-format: ## format locally all files
gofmt -s -l -w .
.PHONY: build
build: sources-image ## Build the docker image with application binary
build: ## Build the docker image with application binary
@echo "+ $@"
docker build --no-cache \
-f containers/Dockerfile \
--build-arg SOURCES_IMAGE=$(NAME)-sources:$(VERSION) \
-t poketools:$(VERSION) .
GIT_CREDENTIALS?=$(shell cat ~/.git-credentials 2> /dev/null)
.PHONY: sources-image
sources-image: ## Generate a Docker image with only the sources
@echo "+ $@"
docker build -t $(NAME)-sources:$(VERSION) -f containers/Dockerfile.sources .
.PHONY: local-run-dependencies

12
go.mod
View File

@@ -1,8 +1,8 @@
module nos-comptes
module nos-comptes
go 1.17
go 1.17
require (
require (
github.com/gin-contrib/cors v1.3.1
github.com/gin-gonic/gin v1.7.4
github.com/lib/pq v1.10.3
@@ -11,9 +11,9 @@ require (
github.com/spf13/viper v1.9.0
google.golang.org/api v0.59.0
gopkg.in/go-playground/validator.v9 v9.31.0
)
)
require (
require (
cloud.google.com/go v0.97.0 // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
@@ -52,4 +52,4 @@ require (
google.golang.org/protobuf v1.27.1 // indirect
gopkg.in/ini.v1 v1.63.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
)