forked from mk6i/open-oscar-server
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (27 loc) · 776 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (27 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
GO_RELEASER_CROSS_VERSION := v1.22.1
DOCKER_IMAGE_TAG := goreleaser-cross-garble:${GO_RELEASER_CROSS_VERSION}
GARBLE_VERSION := v0.12.1
DOCKER_RUN := @docker run \
--env CGO_ENABLED=1 \
--env GITHUB_TOKEN=$(GITHUB_TOKEN) \
--rm \
--volume `pwd`:/go/src/retro-aim-server \
--workdir /go/src/retro-aim-server \
$(DOCKER_IMAGE_TAG)
.PHONY: config
config:
go generate ./config
.PHONY: goreleaser-docker
goreleaser-docker:
@docker build \
--build-arg GARBLE_VERSION=$(GARBLE_VERSION) \
--build-arg GO_RELEASER_CROSS_VERSION=$(GO_RELEASER_CROSS_VERSION) \
--file Dockerfile.goreleaser \
--tag $(DOCKER_IMAGE_TAG) \
.
.PHONY: release
release:
$(DOCKER_RUN) --clean
.PHONY: release-dry-run
release-dry-run:
$(DOCKER_RUN) --clean --skip=validate --skip=publish