diff options
| -rw-r--r-- | archlinux/PKGBUILD (renamed from deployments/archlinux/PKGBUILD) | 6 | ||||
| -rw-r--r-- | config.go (renamed from cmd/fwdsms/config.go) | 0 | ||||
| -rw-r--r-- | config_example.yaml (renamed from configs/example.yaml) | 0 | ||||
| -rw-r--r-- | config_test.go (renamed from cmd/fwdsms/config_test.go) | 0 | ||||
| -rw-r--r-- | docker/Dockerfile (renamed from deployments/docker/Dockerfile) | 3 | ||||
| -rw-r--r-- | mailer.go (renamed from cmd/fwdsms/mailer.go) | 0 | ||||
| -rw-r--r-- | mailer_test.go (renamed from cmd/fwdsms/mailer_test.go) | 0 | ||||
| -rw-r--r-- | main.go (renamed from cmd/fwdsms/main.go) | 0 | ||||
| -rw-r--r-- | systemd/fwdsms.service (renamed from deployments/systemd/fwdsms.service) | 0 |
9 files changed, 5 insertions, 4 deletions
diff --git a/deployments/archlinux/PKGBUILD b/archlinux/PKGBUILD index 3dd3279..5e9489b 100644 --- a/deployments/archlinux/PKGBUILD +++ b/archlinux/PKGBUILD @@ -16,13 +16,13 @@ sha256sums=(SKIP) build() { cd ${pkgname} - go build ./cmd/${pkgname} + go build } package() { cd ${pkgname} install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname} - install -Dm644 configs/example.yaml ${pkgdir}/etc/${pkgname}.yaml - install -Dm644 deployments/systemd/${pkgname}.service ${pkgdir}/usr/lib/systemd/system/${pkgname}.service + install -Dm644 config_example.yaml ${pkgdir}/etc/${pkgname}.yaml + install -Dm644 systemd/${pkgname}.service ${pkgdir}/usr/lib/systemd/system/${pkgname}.service install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE } diff --git a/cmd/fwdsms/config.go b/config.go index 64a4a51..64a4a51 100644 --- a/cmd/fwdsms/config.go +++ b/config.go diff --git a/configs/example.yaml b/config_example.yaml index 8da39e3..8da39e3 100644 --- a/configs/example.yaml +++ b/config_example.yaml diff --git a/cmd/fwdsms/config_test.go b/config_test.go index a303719..a303719 100644 --- a/cmd/fwdsms/config_test.go +++ b/config_test.go diff --git a/deployments/docker/Dockerfile b/docker/Dockerfile index 6a04a6c..fb5062d 100644 --- a/deployments/docker/Dockerfile +++ b/docker/Dockerfile @@ -4,7 +4,8 @@ FROM golang:1.16 WORKDIR /root COPY . ./ -RUN CGO_ENABLED=0 go build ./cmd/fwdsms +ENV CGO_ENABLED=0 +RUN go build FROM scratch COPY --from=0 /root/fwdsms /usr/bin/fwdsms diff --git a/cmd/fwdsms/mailer.go b/mailer.go index cb687c9..cb687c9 100644 --- a/cmd/fwdsms/mailer.go +++ b/mailer.go diff --git a/cmd/fwdsms/mailer_test.go b/mailer_test.go index e1376c3..e1376c3 100644 --- a/cmd/fwdsms/mailer_test.go +++ b/mailer_test.go diff --git a/cmd/fwdsms/main.go b/main.go index 090331f..090331f 100644 --- a/cmd/fwdsms/main.go +++ b/main.go diff --git a/deployments/systemd/fwdsms.service b/systemd/fwdsms.service index a095805..a095805 100644 --- a/deployments/systemd/fwdsms.service +++ b/systemd/fwdsms.service |
