Skip to content

Commit

Permalink
Debian packaging updates (#72)
Browse files Browse the repository at this point in the history
* Debian packaging updates
* Create statically linked binaries (disable CGO)
* Update package.yaml
  • Loading branch information
sts committed Jul 29, 2023
1 parent 7f35d0c commit bd55f64
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
push:
branches:
- main
- test
tags:
- 'v*.*.*'

Expand Down Expand Up @@ -46,7 +45,7 @@ jobs:
sudo apt update && sudo apt -y install make pkg-config rubygems && sudo gem install fpm
# Download corazawaf/coraza/coraza.conf for distribution
curl https://raw.githubusercontent.com/corazawaf/coraza/v2/master/coraza.conf-recommended > coraza.conf
curl https://raw.githubusercontent.com/corazawaf/coraza/v3.0.0/coraza.conf-recommended > coraza.conf
- name: Build binary
run: VERSION=${PACKAGE_VERSION} ARCH=${{ matrix.arch }} make
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ endif
default: build

build:
GOARCH=$(ARCH) GOOS=$(OS) go build -v ${LDFLAGS} -o $(BINARY)_$(ARCH) cmd/coraza-spoa/main.go
GOARCH=$(ARCH) GOOS=$(OS) CGO_ENABLED=0 go build -v ${LDFLAGS} -o $(BINARY)_$(ARCH) cmd/coraza-spoa/main.go

clean:
rm -f $(BINARY)_amd64 $(BINARY)_arm64 $(BINARY)_386
2 changes: 1 addition & 1 deletion contrib/coraza-spoa.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Description=Coraza WAF SPOA Daemon
Documentation=https://www.coraza.io

[Service]
ExecStart=/usr/bin/coraza-spoa -config-file=/etc/coraza-spoa/config.yaml
ExecStart=/usr/bin/coraza-spoa -config=/etc/coraza-spoa/config.yaml
WorkingDirectory=/
Restart=always
Type=exec
Expand Down

0 comments on commit bd55f64

Please sign in to comment.