Skip to content

Commit

Permalink
fix: spirit -> spacebin
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewhrit committed Jul 8, 2024
1 parent e871526 commit aa9c737
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
with:
go-version: 1.22.4
- name: run make
run: make spirit
run: make spacebin
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM golang:1.22.4-alpine3.19

RUN mkdir /opt/spirit
RUN mkdir /opt/spacebin

COPY . /opt/spirit
WORKDIR /opt/spirit
COPY . /opt/spacebin
WORKDIR /opt/spacebin

# We need GCC and other packages for sqlite3 support
RUN apk add --no-cache build-base
Expand All @@ -12,7 +12,7 @@ RUN apk add --no-cache build-base
RUN go mod download

# Build the binary
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build --ldflags "-s -w" -o bin/spirit -tags sqlite ./cmd/spirit/main.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build --ldflags "-s -w" -o bin/spacebin -tags sqlite ./cmd/spacebin/main.go

# Run the generated binary
CMD ["/opt/spirit/bin/spirit"]
CMD ["/opt/spacebin/bin/spacebin"]
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
OUT := bin/spirit
OUT := bin/spacebin

.PHONY: clean

all: spirit
all: spacebin

spirit: clean
spacebin: clean
@go mod download
go build --ldflags "-s -w" -o $(OUT) ./cmd/spirit/main.go
go build --ldflags "-s -w" -o $(OUT) ./cmd/spacebin/main.go

clean:
rm -rf bin/

run: spirit
./bin/spirit
run: spacebin
./bin/spacebin

format:
go fmt ./...
Expand Down
2 changes: 1 addition & 1 deletion internal/server/web/error.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</svg>
</a>

<a id="wiki" href="https://github.com/lukewhrit/spacebin/blob/main/README.md/#-spirit"
<a id="wiki" href="https://github.com/lukewhrit/spacebin/blob/main/README.md/#-spacebin"
aria-label="Spacebin Documentation">
<svg fill="none" height="24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
stroke-width="2" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
Expand Down
2 changes: 1 addition & 1 deletion internal/server/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</svg>
</a>

<a id="wiki" href="https://github.com/lukewhrit/spacebin/blob/main/README.md/#-spirit" aria-label="Spacebin Documentation" target="_blank">
<a id="wiki" href="https://github.com/lukewhrit/spacebin/blob/main/README.md/#-spacebin" aria-label="Spacebin Documentation" target="_blank">
<svg fill="none" height="24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
stroke-width="2" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z" />
Expand Down

0 comments on commit aa9c737

Please sign in to comment.