Skip to content

Commit

Permalink
Move to pure go implementation of sqlite (#61)
Browse files Browse the repository at this point in the history
* Move to pure go implementation of sqlite

* Fix CI

* Fix CI again

* Fix dockerfile linter
  • Loading branch information
galt-tr committed Feb 20, 2024
1 parent fe9be09 commit ae1c53d
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 20 deletions.
10 changes: 3 additions & 7 deletions .goreleaser-for-darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# ---------------------------
# General
# ---------------------------
---
before:
hooks:
- make all
Expand All @@ -18,11 +19,6 @@ changelog:

# ---------------------------
# Builder
#
# CGO is enabled and inspiration came from:
# https://github.com/goreleaser/goreleaser-cross-example
# https://github.com/goreleaser/goreleaser-cross-example-sysroot
# https://github.com/DataDog/extendeddaemonset/blob/main/.goreleaser-for-darwin.yaml
# ---------------------------
builds:
- id: darwin-build
Expand All @@ -34,7 +30,7 @@ builds:
- amd64
- arm64
env:
- CGO_ENABLED=1
- CGO_ENABLED=0
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w -X main.version={{.Version}}
Expand All @@ -53,4 +49,4 @@ archives:
- LICENSE
checksum:
name_template: "checksums.txt"
algorithm: sha256
algorithm: sha256
8 changes: 2 additions & 6 deletions .goreleaser-for-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# ---------------------------
# General
# ---------------------------
---
before:
hooks:
- make all
Expand All @@ -18,11 +19,6 @@ changelog:

# ---------------------------
# Builder
#
# CGO is enabled and inspiration came from:
# https://github.com/goreleaser/goreleaser-cross-example
# https://github.com/goreleaser/goreleaser-cross-example-sysroot
# https://github.com/DataDog/extendeddaemonset/blob/main/.goreleaser-for-linux.yaml
# ---------------------------
builds:
- id: linux-build
Expand All @@ -34,7 +30,7 @@ builds:
- amd64
- arm64
env:
- CGO_ENABLED=1
- CGO_ENABLED=0
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w -X main.version={{.Version}}
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ COPY cmd/ cmd/
COPY utils/ utils/
COPY go.mod go.mod
COPY go.sum go.sum
RUN CGO_ENABLED=1 go build -a -o $APP_ROOT/src/alert-system github.com/bitcoin-sv/alert-system/cmd
RUN CGO_ENABLED=0 go build -a -o $APP_ROOT/src/alert-system github.com/bitcoin-sv/alert-system/cmd

# Copy the controller-manager into a thin image
FROM registry.access.redhat.com/ubi9-minimal
FROM registry.access.redhat.com/ubi9-minimal:9.3
WORKDIR /
RUN mkdir /.bitcoin
RUN touch /.bitcoin/alert_system_private_key
Expand Down
10 changes: 9 additions & 1 deletion go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 17 additions & 4 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ae1c53d

Please sign in to comment.