Skip to content

Commit 481ce34

Browse files
Merge branch 'main' into release/v0.1
2 parents 31b3d07 + 8f31db1 commit 481ce34

File tree

14 files changed

+607
-176
lines changed

14 files changed

+607
-176
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ bin/
1515
# Dependency directories (remove the comment below to include it)
1616
# vendor/
1717
.vscode
18+
cmd/temp

Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ USER_ID=$(shell ((docker --version | grep -q podman) && echo "0" || id -u))
66
USER_GROUP=$(shell ((docker --version | grep -q podman) && echo "0" || id -g))
77
ROOTDIR=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))
88
GOPATH ?= $(shell go env GOPATH)
9+
VERSION ?= $(shell git describe --tags --match='v[0-9]*' --dirty --always)
910
GO ?= go
1011

1112

12-
default: install
13+
default: build
1314

1415
.PHONY : build-static test install-lint-deps lint go-test fmt fmtcheck verify-vendor verify
1516
build-static:
@@ -18,9 +19,12 @@ build-static:
1819
docker run --rm -e USER_ID=$(USER_ID) -e USER_GROUP=$(USER_GROUP) -v $(PWD):/build/garm:z $(IMAGE_TAG) /build-static.sh
1920
@echo Binaries are available in $(PWD)/bin
2021

21-
install:
22-
@$(GO) install -tags osusergo,netgo,sqlite_omit_load_extension ./...
23-
@echo Binaries available in ${GOPATH}
22+
build:
23+
@echo Building garm ${VERSION}
24+
$(shell mkdir -p ./bin)
25+
@$(GO) build -ldflags "-s -w -X main.Version=${VERSION}" -tags osusergo,netgo,sqlite_omit_load_extension -o bin/garm ./cmd/garm
26+
@$(GO) build -ldflags "-s -w -X github.com/cloudbase/garm/cmd/garm-cli/cmd.Version=${VERSION}" -tags osusergo,netgo,sqlite_omit_load_extension -o bin/garm-cli ./cmd/garm-cli
27+
@echo Binaries are available in $(PWD)/bin
2428

2529
test: verify go-test
2630

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# GitHub Actions Runners Manager (garm)
1+
# GitHub Actions Runner Manager (garm)
22

33
[![Go Tests](https://github.com/cloudbase/garm/actions/workflows/go-tests.yml/badge.svg)](https://github.com/cloudbase/garm/actions/workflows/go-tests.yml)
44

@@ -10,6 +10,12 @@ The goal of ```garm``` is to be simple to set up, simple to configure and simple
1010

1111
Garm supports creating pools on either GitHub itself or on your own deployment of [GitHub Enterprise Server](https://docs.github.com/en/[email protected]/admin/overview/about-github-enterprise-server). For instructions on how to use ```garm``` with GHE, see the [credentials](/doc/github_credentials.md) section of the documentation.
1212

13+
## Join us on slack
14+
15+
Whether you're running into issues or just want to drop by and say "hi", feel free to [join us on slack](https://communityinviter.com/apps/garm-hq/garm).
16+
17+
[![slack](https://img.shields.io/badge/slack-garm-brightgreen.svg?logo=slack)](https://communityinviter.com/apps/garm-hq/garm)
18+
1319
## Installing
1420

1521
## Build from source

0 commit comments

Comments
 (0)