diff --git a/Makefile b/Makefile index a85a5f8..c33c649 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ TEST?=./gitea GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor) GOFMT ?= gofmt -s +ARCH?=$$(uname -m | sed 's/x86_64/amd64/g') +KERNEL?=$$(uname -s | tr '[:upper:]' '[:lower:]') VERSION = 0.2.0 @@ -33,3 +35,8 @@ build: go build -ldflags="-X 'main.Version=${VERSION}'" -o terraform-provider-gitea_${VERSION} doc: tfplugindocs +install: build + @echo installing to + @echo ~/.terraform.d/plugins/terraform.local/go-gitea/gitea/${VERSION}/${KERNEL}_${ARCH}/terraform-provider-gitea_${VERSION} + @mkdir -p ~/.terraform.d/plugins/terraform.local/go-gitea/gitea/${VERSION}/${KERNEL}_${ARCH} + @mv terraform-provider-gitea_${VERSION} ~/.terraform.d/plugins/terraform.local/go-gitea/gitea/${VERSION}/${KERNEL}_${ARCH}/terraform-provider-gitea_${VERSION} diff --git a/scripts/docker-compose.yaml b/scripts/docker-compose.yaml new file mode 100644 index 0000000..f80b687 --- /dev/null +++ b/scripts/docker-compose.yaml @@ -0,0 +1,23 @@ +version: "3" + +networks: + gitea: + external: false + +services: + server: + image: gitea/gitea:1.19.3 + container_name: gitea + environment: + - USER_UID=1000 + - USER_GID=1000 + - DISABLE_GIT_HOOKS=false + restart: always + networks: + - gitea + volumes: + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + ports: + - "3000:3000" + - "222:22" \ No newline at end of file