Skip to content

Commit

Permalink
Fix: missing files and scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Oct 27, 2024
1 parent e914a91 commit 60a6906
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .air.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[build]
cmd = "make -s init"
bin = "bin"

5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
# Go workspace file
go.work
go.work.sum
bin
tmp

# Vault
vault
vault.*
*.vt
*.bak
bin
*.bak
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ENTRYPOINT air
### BASE DEPLOY
FROM base AS base-deploy
COPY . .
RUN make mainbuild
RUN make build

### DEPLOY
FROM ubuntu:24.04 AS deploy
Expand Down
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DISPLAY_NAME := Vault
SHORT_NAME := vault
VERSION := 1.3.9
DISPLAY_NAME := WireGaurdGenerator
SHORT_NAME := wgg
VERSION := 1.0.0

COMMIT := $(shell git rev-parse --short HEAD)
BUILD_ARGS := "-X main.Version=$(VERSION) -X main.Commit=$(COMMIT) -X main.DisplayName=$(DISPLAY_NAME) -X main.ShortName=$(SHORT_NAME)"
Expand Down Expand Up @@ -68,6 +68,12 @@ init:
@echo "building..."
@make -s build

## air: starts the go bin in air watch mode
.PHONY: air
air:
@go install github.com/air-verse/air@v1
@air

## dev: starts a dev docker container
.PHONY: dev
dev:
Expand Down

0 comments on commit 60a6906

Please sign in to comment.